service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServices

func GetServices() define.Restful

func NewLogger

func NewLogger(name string) *logger

func Register

func Register(s ...define.IService)

func RegisterFuncName

func RegisterFuncName(rs *RPCXService, services define.Restful) error

Types

type Discovery

type Discovery struct {
	BasePath       string
	UpdateInterval time.Duration
	Addr           []string
}

type RPCXService

type RPCXService struct {
	Env                string
	Version            string
	VersionKey         string
	Name               string
	HostName           string
	SystemIP           string
	Addr               string
	LogDir             string
	ErrorRobotToken    string
	GracefulRobotToken string
	Etcd               *Discovery
	Server             *server.Server
	SessionClient      func() *redis.Client
}

func (*RPCXService) Serve

func (s *RPCXService) Serve()

Jump to

Keyboard shortcuts

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