mock

package
v1.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GokaMockContext

type GokaMockContext struct {
	// contains filtered or unexported fields
}

func NewGokaMockContext

func NewGokaMockContext(t *testing.T) *GokaMockContext

func (*GokaMockContext) Context

func (g *GokaMockContext) Context() context.Context

func (*GokaMockContext) DeferCommit

func (g *GokaMockContext) DeferCommit() func(error)

func (*GokaMockContext) Delete

func (g *GokaMockContext) Delete(options ...goka.ContextOption)

func (*GokaMockContext) Emit

func (g *GokaMockContext) Emit(topic goka.Stream, key string, value interface{}, options ...goka.ContextOption)

func (*GokaMockContext) Fail

func (g *GokaMockContext) Fail(err error)

func (*GokaMockContext) GetAllEmits

func (g *GokaMockContext) GetAllEmits() map[goka.Stream][]KeyedMessage

func (*GokaMockContext) GetEmitForTopic

func (g *GokaMockContext) GetEmitForTopic(stream goka.Stream) []KeyedMessage

func (*GokaMockContext) Group

func (g *GokaMockContext) Group() goka.Group

func (*GokaMockContext) Headers

func (g *GokaMockContext) Headers() goka.Headers

func (*GokaMockContext) Join

func (g *GokaMockContext) Join(topic goka.Table) interface{}

func (*GokaMockContext) Key

func (g *GokaMockContext) Key() string

func (*GokaMockContext) Lookup

func (g *GokaMockContext) Lookup(topic goka.Table, key string) interface{}

func (*GokaMockContext) Loopback

func (g *GokaMockContext) Loopback(key string, value interface{}, options ...goka.ContextOption)

func (*GokaMockContext) Offset

func (g *GokaMockContext) Offset() int64

func (*GokaMockContext) Partition

func (g *GokaMockContext) Partition() int32

func (*GokaMockContext) Reset

func (g *GokaMockContext) Reset()

func (*GokaMockContext) SetValue

func (g *GokaMockContext) SetValue(value interface{}, options ...goka.ContextOption)

func (*GokaMockContext) Timestamp

func (g *GokaMockContext) Timestamp() time.Time

func (*GokaMockContext) Topic

func (g *GokaMockContext) Topic() goka.Stream

func (*GokaMockContext) Value

func (g *GokaMockContext) Value() interface{}

func (*GokaMockContext) WithContext

func (g *GokaMockContext) WithContext(ctx context.Context) *GokaMockContext

func (*GokaMockContext) WithHeaders

func (g *GokaMockContext) WithHeaders(headers map[string][]byte) *GokaMockContext

func (*GokaMockContext) WithJoinValue

func (g *GokaMockContext) WithJoinValue(table goka.Table, value interface{}) *GokaMockContext

func (*GokaMockContext) WithKeyValue

func (g *GokaMockContext) WithKeyValue(key string, value interface{}) *GokaMockContext

func (*GokaMockContext) WithLookupValue

func (g *GokaMockContext) WithLookupValue(table goka.Table, key string, value interface{}) *GokaMockContext

func (*GokaMockContext) WithOffset

func (g *GokaMockContext) WithOffset(offset int64) *GokaMockContext

func (*GokaMockContext) WithPartition

func (g *GokaMockContext) WithPartition(partition int32) *GokaMockContext

func (*GokaMockContext) WithTimestamp

func (g *GokaMockContext) WithTimestamp(timestamp time.Time) *GokaMockContext

func (*GokaMockContext) WithTopic

func (g *GokaMockContext) WithTopic(topic goka.Stream) *GokaMockContext

type KeyedMessage

type KeyedMessage struct {
	Key   string
	Value interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL