debug

package
v0.0.0-...-e613b9d Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewID

func NewID() (string, error)

Types

type ClientRepository

type ClientRepository interface {
	Config(context.Context) (ClientWithContexter, error)
	Connect(ClientWithContexter) error
}

type ClientWithContext

type ClientWithContext struct {
	Context context.Context
	Client  Clienter
}

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.

Jump to

Keyboard shortcuts

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