service

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Net_Tcp  = "tcp"
	Net_Addr = "%s:%d"
)

Variables

This section is empty.

Functions

func Init

func Init(logConf zap.Config)

func Listen

func Listen(host string, prot int) error

func OpenTracing

func OpenTracing(open string)

func Register

func Register(sv ServiceInterface)

func RegisterToCenter

func RegisterToCenter(conf etcd.Config, ttl int64, listen *krpc.Local) error

func Shutdown added in v0.0.5

func Shutdown()

func Stop

func Stop()

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

func NewBase

func NewBase(desc *grpc.ServiceDesc) *Base

func (*Base) Desc

func (b *Base) Desc() *grpc.ServiceDesc

type ServiceInterface

type ServiceInterface interface {
	Desc() *grpc.ServiceDesc
}

Jump to

Keyboard shortcuts

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