Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
ServiceId int64 `json:"service_id" yaml:"service_id" toml:"service_id"` // 服务标识(ID)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func (*Service) ParseCommandArgs ¶
func (s *Service) ParseCommandArgs()
type ServiceConfig ¶
type ServiceConfig struct {
App *AppConfig `json:"app" yaml:"app" toml:"app"`
Service *server.Config `json:"service" yaml:"service" toml:"service"`
Discovery *discovery.ServerConfig `json:"discovery,omitempty" yaml:"discovery" toml:"discovery"`
}
Click to show internal directories.
Click to hide internal directories.