Documentation
¶
Index ¶
Constants ¶
View Source
const ENV_OFFCHAIN_CONFIG = "OFFCHAIN_CONFIG"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearerToken ¶
type Config ¶
type Config struct {
Listen string `yaml:"listen" env-default:"127.0.0.1:6333"`
Origins []string `yaml:"origins" env-default:""`
AnyOrigin bool `yaml:"any_origin" env-default:"false"`
PublicReadEndpoints bool `yaml:"public_read_endpoints"`
BearerTokens []BearerToken `yaml:"bearer_tokens"`
PublicKeys []HttpPublicKey `yaml:"public_keys"`
}
func LoadConfig ¶
type HttpPublicKey ¶
type Server ¶
type Server struct {
ServerArgs
// contains filtered or unexported fields
}
Server represents the HTTP server
Click to show internal directories.
Click to hide internal directories.