ebus

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

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) Destroy

func (s *Service) Destroy()

func (*Service) Initialize

func (s *Service) Initialize(cfg app.Config) error

func (*Service) InitializeConfig

func (s *Service) InitializeConfig(cfg app.Config) error

func (*Service) ParseCommandArgs

func (s *Service) ParseCommandArgs()

func (*Service) ReloadConfig

func (s *Service) ReloadConfig(cfg app.Config) error

func (*Service) RunLoop

func (s *Service) RunLoop() (err error)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL