Documentation ¶
Index ¶
Constants ¶
View Source
const (
FmtCannotStart = "cannot start %q"
)
Variables ¶
View Source
var ( ErrStartTimeout = errors.New("start timeout") ErrShutdownTimeout = errors.New("shutdown timeout") )
Functions ¶
func MakeEncodingConfig ¶
func MakeEncodingConfig() (codec.Codec, *codec.AminoCodec)
MakeEncodingConfig creates an EncodingConfig to properly handle and marshal all messages
func MakeSdkConfig ¶
MakeSdkConfig represents a handy implementation of SdkConfigSetup that simply setups the prefix inside the configuration
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetStartTimeout ¶
func (*App) GetStopTimeout ¶
type Config ¶
type Config struct { ChainPrefix string `env:"CHAIN_PREFIX"` LogLevel string `env:"LOG_LEVEL" envDefault:"info"` Server server.Config Modules []string `env:"MODULES" required:"true"` GRPCConfig grpc.Config RPCConfig rpc.Config BrokerConfig broker.Config StorageConfig storage.Config WorkerConfig worker.Config StartTimeout time.Duration `env:"START_TIMEOUT"` StopTimeout time.Duration `env:"STOP_TIMEOUT"` ParseAvatarURL bool `env:"PARSE_AVATAR_URL" envDefault:"false"` }
Click to show internal directories.
Click to hide internal directories.