Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(ctx context.Context) ([]grpc.DialOption, []grpc.CallOption)
Register registers a new logger plugin for grpc client.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log represents logger plugin for grpc client.
func NewLogWithConfigPath ¶
NewLogWithConfigPath returns a new logger plugin with options from config path.
func NewLogWithOptions ¶
NewLogWithOptions returns a new logger plugin with options.
func (*Log) Register ¶
func (i *Log) Register(ctx context.Context) ([]grpc.DialOption, []grpc.CallOption)
Register registers this logger plugin for grpc client.
type Options ¶
Options logger plugin for grpc client options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals options based a given key path.
Click to show internal directories.
Click to hide internal directories.