config

package
v0.0.0-...-bfed37f Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfig

type ApiConfig struct {
	Enabled bool   `json:"enabled"`
	Listen  string `json:"listen"`

	NetId          int64    `json:"netId"`
	AllowedOrigins []string `json:"AllowedOrigins"`
	Name           string

	ServerType string `json:"ServerType"`

	// In Shannon
	Threshold    int64  `json:"threshold"`
	AccessSecret string `json:"AccessSecret"`

	Upstream []Upstream `json:"rpcUrl"`
}

type AuthConfig

type AuthConfig struct {
	ClientID     string `json:"ClientID"`
	ClientSecret string `json:"ClientSecret"`
}

type Config

type Config struct {
	Name string    `json:"name"`
	Api  ApiConfig `json:"api"`

	Threads int `json:"threads"`

	Redis     redis.Config `json:"redis"`
	Mysql     mysql.Config `json:"mysql"`
	MysqlAuth mysql.Config `json:"mysql-auth"`
	Auth      AuthConfig   `json:"auth"`
}

type Upstream

type Upstream struct {
	Name    string `json:"name"`
	Url     string `json:"url"`
	Timeout string `json:"timeout"`
}

Jump to

Keyboard shortcuts

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