Documentation
¶
Index ¶
Constants ¶
View Source
const (
Leaderboard = "leaderboard"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerOptions ¶
type ConsumerOptions struct { Kafka struct { Server string Topic string } Redis struct { Host string Port int Pass string } }
func (*ConsumerOptions) AddFlags ¶
func (opt *ConsumerOptions) AddFlags(flags *pflag.FlagSet)
type ServiceOptions ¶
type ServiceOptions struct { Port int DB struct { Host string Port int User string Pass string Name string Options string } Redis struct { Host string Pass string Port int } }
func (*ServiceOptions) AddFlags ¶
func (opt *ServiceOptions) AddFlags(flags *pflag.FlagSet)
func (*ServiceOptions) DSN ¶
func (opt *ServiceOptions) DSN() string
DSN returns the data source name for the given database.
Click to show internal directories.
Click to hide internal directories.