testent

package
v0.128.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeContext added in v0.128.0

func MakeContext(tb testing.TB) context.Context

Types

type Foo

type Foo struct {
	ID  FooID `ext:"ID"`
	Foo string
	Bar string
	Baz string
}

func MakeFoo

func MakeFoo(tb testing.TB) Foo

type FooDTO

type FooDTO struct {
	ID  string `ext:"ID" json:"id"`
	Foo string `json:"foo"`
	Bar string `json:"bar"`
	Baz string `json:"baz"`
}

type FooID

type FooID string

type FooJSONMapping

type FooJSONMapping struct{}

func (FooJSONMapping) ToDTO

func (n FooJSONMapping) ToDTO(ent Foo) (FooDTO, error)

func (FooJSONMapping) ToEnt

func (n FooJSONMapping) ToEnt(dto FooDTO) (Foo, error)

type FooQueue added in v0.128.0

type FooQueue struct {
	ID FooQueueID `ext:"id"`
	pubsub.Publisher[Foo]
	pubsub.Subscriber[Foo]
}

func (FooQueue) SetPublisher added in v0.128.0

func (fq FooQueue) SetPublisher(p pubsub.Publisher[Foo])

func (FooQueue) SetSubscriber added in v0.128.0

func (fq FooQueue) SetSubscriber(s pubsub.Subscriber[Foo])

type FooQueueID added in v0.128.0

type FooQueueID string

Jump to

Keyboard shortcuts

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