Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonFlag ¶
type CommonFlag struct {
DevelopmentMode bool `type:"bool" shorthand:"d" enable-env:"true" usage:"development mode" json:"development_mode"`
}
CommonFlag ...
type DaemonFlag ¶
type DaemonFlag struct { UseS3 bool `type:"bool" shorthand:"s" enable-env:"true" usage:"use s3" json:"use_s3"` S3Region string `type:"string" shorthand:"r" enable-env:"true" usage:"s3 region" json:"s3_region"` BucketName string `type:"string" shorthand:"b" enable-env:"true" usage:"bucket name" json:"bucket_name"` Prefix string `type:"string" shorthand:"x" enable-env:"true" usage:"prefix" json:"prefix"` GRPCListen string `type:"string" shorthand:"g" enable-env:"true" usage:"listen address of grpc server" json:"grpc_listen"` HTTPListen string `type:"string" shorthand:"l" enable-env:"true" usage:"listen address of http server" json:"http_listen"` EnablePprof bool `type:"bool" shorthand:"p" enable-env:"true" usage:"enable pprof server" json:"enable_pprof"` }
DaemonFlag ...
type FailoverFlag ¶
type FailoverFlag struct { Env string `type:"string" shorthand:"e" enable-env:"true" usage:"environment" json:"env"` ChainID string `type:"string" shorthand:"i" enable-env:"true" usage:"chain id" json:"chain_id"` Role int `type:"int" shorthand:"r" enable-env:"true" usage:"role 1 master, 2 backup" json:"role"` GrpcServer string `type:"string" shorthand:"g" enable-env:"true" usage:"address of grpc server" json:"grpc_server"` }
FailoverFlag is the flag for failover tool
type NdrcFlag ¶
type NdrcFlag struct { CommonFlag Config string `type:"string" shorthand:"c" enable-env:"true" usage:"configuration file, default is config.yaml" json:"config"` }
NdrcFlag ...
type TestingFlag ¶
Click to show internal directories.
Click to hide internal directories.