feat: gamemaster

This commit is contained in:
Ilia Denisov
2026-05-03 07:59:03 +02:00
committed by GitHub
parent a7cee15115
commit 3e2622757e
229 changed files with 41521 additions and 1098 deletions
@@ -0,0 +1,71 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: galaxy/gamemaster/internal/ports (interfaces: StreamOffsetStore)
//
// Generated by this command:
//
// mockgen -destination=../adapters/mocks/mock_streamoffsetstore.go -package=mocks galaxy/gamemaster/internal/ports StreamOffsetStore
//
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockStreamOffsetStore is a mock of StreamOffsetStore interface.
type MockStreamOffsetStore struct {
ctrl *gomock.Controller
recorder *MockStreamOffsetStoreMockRecorder
isgomock struct{}
}
// MockStreamOffsetStoreMockRecorder is the mock recorder for MockStreamOffsetStore.
type MockStreamOffsetStoreMockRecorder struct {
mock *MockStreamOffsetStore
}
// NewMockStreamOffsetStore creates a new mock instance.
func NewMockStreamOffsetStore(ctrl *gomock.Controller) *MockStreamOffsetStore {
mock := &MockStreamOffsetStore{ctrl: ctrl}
mock.recorder = &MockStreamOffsetStoreMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockStreamOffsetStore) EXPECT() *MockStreamOffsetStoreMockRecorder {
return m.recorder
}
// Load mocks base method.
func (m *MockStreamOffsetStore) Load(ctx context.Context, stream string) (string, bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Load", ctx, stream)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Load indicates an expected call of Load.
func (mr *MockStreamOffsetStoreMockRecorder) Load(ctx, stream any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Load", reflect.TypeOf((*MockStreamOffsetStore)(nil).Load), ctx, stream)
}
// Save mocks base method.
func (m *MockStreamOffsetStore) Save(ctx context.Context, stream, entryID string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Save", ctx, stream, entryID)
ret0, _ := ret[0].(error)
return ret0
}
// Save indicates an expected call of Save.
func (mr *MockStreamOffsetStoreMockRecorder) Save(ctx, stream, entryID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Save", reflect.TypeOf((*MockStreamOffsetStore)(nil).Save), ctx, stream, entryID)
}