Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientRepository ¶
type ClientRepository interface { Config(context.Context) (ClientWithContexter, error) Connect(ClientWithContexter) error }
type ClientWithContext ¶
ClientWithContext is Client with context.Context.
func (*ClientWithContext) GetClient ¶
func (p *ClientWithContext) GetClient() Clienter
GetClient returns Clienter.
func (*ClientWithContext) GetContext ¶
func (p *ClientWithContext) GetContext() context.Context
GetContext returns context.Context.
func (*ClientWithContext) MarshalZerologObject ¶
func (p *ClientWithContext) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject writes ClientWithContext to given zerolog.Event.
func (*ClientWithContext) String ¶
func (p *ClientWithContext) String() string
String returns ClientWithContext as string.
func (*ClientWithContext) Validate ¶
func (p *ClientWithContext) Validate() error
Validate returns error if failed validate.
type ClientWithContexter ¶
type ClientWithContexter interface { GetClient() Clienter GetContext() context.Context MarshalZerologObject(*zerolog.Event) String() string Validate() error }
ClientWithContexter is an interface generated for "github.com/michilu/boilerplate/service/debug.ClientWithContext".
type Clienter ¶
type Clienter = pb.DebugClienter
type TopicClientWithContexter ¶
type TopicClientWithContexter interface { // Publish returns a '<-chan ClientWithContexter' that joins to the given topic. Publish(ctx context.Context, c <-chan ClientWithContexter) // Publisher returns a 'chan<- ClientWithContexter' that joins to the given topic. Publisher(ctx context.Context) chan<- ClientWithContexter // Subscribe returns a 'chan<- ClientWithContexter' that joins to the given topic. Subscribe(c chan<- ClientWithContexter) }
TopicClientWithContexter is a topic.
func GetTopicClientWithContexter ¶
func GetTopicClientWithContexter(topic interface{}) TopicClientWithContexter
GetTopicClientWithContexter returns a TopicClientWithContexter of the given topic.
type TopicClienter ¶
type TopicClienter interface { // Publish returns a '<-chan Clienter' that joins to the given topic. Publish(ctx context.Context, c <-chan Clienter) // Publisher returns a 'chan<- Clienter' that joins to the given topic. Publisher(ctx context.Context) chan<- Clienter // Subscribe returns a 'chan<- Clienter' that joins to the given topic. Subscribe(c chan<- Clienter) }
TopicClienter is a topic.
func GetTopicClienter ¶
func GetTopicClienter(topic interface{}) TopicClienter
GetTopicClienter returns a TopicClienter of the given topic.
Click to show internal directories.
Click to hide internal directories.