Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Server struct { Host string `yaml:"host"` Port string `yaml:"port"` Tls AppConfigTls `yaml:"tls"` } `yaml:"server"` Database struct { Host string `yaml:"host"` Port string `yaml:"port"` User string `yaml:"user"` Pass string `yaml:"pass"` Name string `yaml:"name"` } `yaml:"database"` Coin struct { Xmr struct { Daemon AppConfigDaemon `yaml:"daemon"` } `yaml:"xmr"` Btc struct { Daemon AppConfigDaemon `yaml:"daemon"` } `yaml:"btc"` Ltc struct { Daemon AppConfigDaemon `yaml:"daemon"` } `yaml:"ltc"` Eth struct { Daemon AppConfigDaemon `yaml:"daemon"` } `yaml:"eth"` Bnb struct { Daemon AppConfigDaemon `yaml:"daemon"` } `yaml:"bnb"` } `yaml:"coin"` }
func NewAppConfig ¶
type AppConfigDaemon ¶
type AppConfigTls ¶ added in v0.4.0
type MetadataInterceptor ¶ added in v0.4.0
type MetadataInterceptor struct {
// contains filtered or unexported fields
}
func NewMetadataInterceptor ¶ added in v0.4.0
func NewMetadataInterceptor(log *zerolog.Logger) *MetadataInterceptor
func (*MetadataInterceptor) Intercepte ¶ added in v0.4.0
func (i *MetadataInterceptor) Intercepte(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
type RequestLoggingInterceptor ¶
type RequestLoggingInterceptor struct {
// contains filtered or unexported fields
}
func NewRequestLoggingInterceptor ¶
func NewRequestLoggingInterceptor(log *zerolog.Logger) *RequestLoggingInterceptor
func (*RequestLoggingInterceptor) Intercepte ¶
func (i *RequestLoggingInterceptor) Intercepte(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
Click to show internal directories.
Click to hide internal directories.