Documentation
¶
Overview ¶
Package service is a generated GoMock package.
Package service is a generated GoMock package.
Package service is a generated GoMock package.
Index ¶
- type Account
- type Connection
- type Disconnection
- type Emoji
- type Error
- type Message
- type MockQueueWriter
- type MockQueueWriterMockRecorder
- type MockScheduler
- type MockSchedulerMockRecorder
- type MockStreaming
- type MockStreamingMockRecorder
- type Packet
- type Processor
- type QueueWriter
- type Reconnection
- type Scheduler
- type Status
- type Streaming
- type Tag
- type Tick
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
Server string
}
type Disconnection ¶
type Disconnection struct {
Err error
}
type Message ¶
type Message struct { ID string `json:"id"` Account Account `json:"account"` CreatedAt time.Time `json:"created_at"` Content string `json:"content"` Emojis []Emoji `json:"emojis"` InReplyToID string `json:"in_reply_to_id"` IsReblog bool `json:"is_reblog"` Tags []Tag `json:"tags"` Visibility string `json:"visibility"` }
type MockQueueWriter ¶
type MockQueueWriter struct {
// contains filtered or unexported fields
}
MockQueueWriter is a mock of QueueWriter interface.
func NewMockQueueWriter ¶
func NewMockQueueWriter(ctrl *gomock.Controller) *MockQueueWriter
NewMockQueueWriter creates a new mock instance.
func (*MockQueueWriter) EXPECT ¶
func (m *MockQueueWriter) EXPECT() *MockQueueWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockQueueWriterMockRecorder ¶
type MockQueueWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockQueueWriterMockRecorder is the mock recorder for MockQueueWriter.
func (*MockQueueWriterMockRecorder) Close ¶
func (mr *MockQueueWriterMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
type MockScheduler ¶
type MockScheduler struct {
// contains filtered or unexported fields
}
MockScheduler is a mock of Scheduler interface.
func NewMockScheduler ¶
func NewMockScheduler(ctrl *gomock.Controller) *MockScheduler
NewMockScheduler creates a new mock instance.
func (*MockScheduler) EXPECT ¶
func (m *MockScheduler) EXPECT() *MockSchedulerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSchedulerMockRecorder ¶
type MockSchedulerMockRecorder struct {
// contains filtered or unexported fields
}
MockSchedulerMockRecorder is the mock recorder for MockScheduler.
func (*MockSchedulerMockRecorder) Start ¶
func (mr *MockSchedulerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockSchedulerMockRecorder) Stop ¶
func (mr *MockSchedulerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockStreaming ¶
type MockStreaming struct {
// contains filtered or unexported fields
}
MockStreaming is a mock of Streaming interface.
func NewMockStreaming ¶
func NewMockStreaming(ctrl *gomock.Controller) *MockStreaming
NewMockStreaming creates a new mock instance.
func (*MockStreaming) Close ¶
func (m *MockStreaming) Close(exit bool) error
Close mocks base method.
func (*MockStreaming) EXPECT ¶
func (m *MockStreaming) EXPECT() *MockStreamingMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStreaming) Run ¶
func (m *MockStreaming) Run(ctx context.Context) error
Run mocks base method.
func (*MockStreaming) Statuses ¶
func (m *MockStreaming) Statuses() <-chan Status
Statuses mocks base method.
type MockStreamingMockRecorder ¶
type MockStreamingMockRecorder struct {
// contains filtered or unexported fields
}
MockStreamingMockRecorder is the mock recorder for MockStreaming.
func (*MockStreamingMockRecorder) Close ¶
func (mr *MockStreamingMockRecorder) Close(exit any) *gomock.Call
Close indicates an expected call of Close.
func (*MockStreamingMockRecorder) Run ¶
func (mr *MockStreamingMockRecorder) Run(ctx any) *gomock.Call
Run indicates an expected call of Run.
func (*MockStreamingMockRecorder) Statuses ¶
func (mr *MockStreamingMockRecorder) Statuses() *gomock.Call
Statuses indicates an expected call of Statuses.
type Processor ¶
type Processor interface {
Execute(ctx context.Context, scheduler <-chan Tick, stream <-chan Status)
}
func NewProcessor ¶
func NewProcessor(writer QueueWriter) Processor