config

package
v0.0.0-...-d41363a Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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