config

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewConfig)

Functions

This section is empty.

Types

type AppConfig added in v0.0.22

type AppConfig struct {
	Name string `json:"name"`

	Http    Http    `json:"http"`
	Rpc     Rpc     `json:"rpc"`
	Web     Web     `json:"web"`
	Plugin  Plugin  `json:"plugin"`
	Storage Storage `json:"storage"`

	Mysql    Mysql    `json:"mysql"`
	Redis    Redis    `json:"redis"`
	Etcd     Etcd     `json:"etcd"`
	Influx   Influx   `json:"influx"`
	Rabbitmq Rabbitmq `json:"rabbitmq"`
	Jaeger   Jaeger   `json:"jaeger"`

	Slack    Slack    `json:"slack"`
	Rollbar  Rollbar  `json:"rollbar"`
	Telegram Telegram `json:"telegram"`
	// contains filtered or unexported fields
}

func NewConfig added in v0.0.22

func NewConfig() *AppConfig

type Etcd added in v0.0.22

type Etcd struct {
	Url      string `json:"url"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Etcd config

type Http added in v0.0.22

type Http struct {
	Host string `json:"host"`
	Port int    `json:"port"`
	Mode string `json:"mode"`
}

Http http config

type Influx added in v0.0.22

type Influx struct {
	Token  string `json:"token"`
	Org    string `json:"org"`
	Bucket string `json:"bucket"`
	Url    string `json:"url"`
}

Influx config

type Jaeger added in v0.0.22

type Jaeger struct {
	ServiceName string `json:"serviceName"`
	Reporter    struct {
		LocalAgentHostPort string `json:"localAgentHostPort"`
	} `json:"reporter"`
	Sampler struct {
		Type  string  `json:"type"`
		Param float64 `json:"param"`
	} `json:"sampler"`
}

Jaeger config

type Mysql added in v0.0.22

type Mysql struct {
	Url string `json:"url"`
}

Mysql config

type Plugin added in v0.0.22

type Plugin struct {
	Path string `json:"path"`
}

Plugin spider config

type Rabbitmq added in v0.0.22

type Rabbitmq struct {
	Url string `json:"url"`
}

Rabbitmq config

type Redis added in v0.0.22

type Redis struct {
	Addr     string `json:"addr"`
	Password string `json:"password"`
}

Redis config

type Rollbar added in v0.0.22

type Rollbar struct {
	Token       string `json:"token"`
	Environment string `json:"environment"`
}

Rollbar config

type Rpc added in v0.0.22

type Rpc struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

Rpc http config

type Slack added in v0.0.22

type Slack struct {
	Verification string `json:"verification"`
	Signing      string `json:"signing"`
	Token        string `json:"token"`
	Webhook      string `json:"webhook"`
}

Slack config

type Storage added in v0.0.22

type Storage struct {
	Path string `json:"path"`
}

Storage config

type Telegram added in v0.0.22

type Telegram struct {
	Token string `json:"token"`
}

Telegram config

type Web added in v0.0.22

type Web struct {
	Url string `json:"url"`
}

Web config

Jump to

Keyboard shortcuts

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