Documentation ¶
Overview ¶
Package micro is a wrapper package for common features of microservices based on the go-micro framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithRequestID ¶
ContextWithRequestID returns a context.Context based on the provided context and containing the provided *uuid.UUID representing a request ID.
Types ¶
type Client ¶
type Client interface {
Name() string
}
Client is a wrapper interface for Micro clients.
type ClientSet ¶
type ClientSet struct {
// contains filtered or unexported fields
}
ClientSet is a container for multiple clients used by a Service.
func NewClientSet ¶
NewClientSet creates a new ClientSet with the given clients.
type Service ¶
type Service struct { micro.Service Name string }
Service represents a microservice definition.
func NewService ¶
NewService initializes a new microservice instance with the given identifier (e.g. com.example.svc.greeter), and given a configuration struct containing default values, loads configuration values from the given sources into the struct.