Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GRPCAddr string `json:"grpc_address"` // gRPC server address Dsn string `json:"database_dsn"` // data source name Config string `json:"-"` // config file path Debug bool `json:"-"` // is debug mode TokenKey string `json:"token_key"` // token key }
Config - server config
func (*Config) UseJsonConfigFile ¶
UseJsonConfigFile - use config file
type ServerApp ¶
ServerApp - server application
func NewServerApp ¶
func NewServerApp( cfg Config, appMigrator migrate.IAppMigrator, ) *ServerApp
NewServerApp - constructor
Click to show internal directories.
Click to hide internal directories.