registered_server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcServerConfig

type GrpcServerConfig struct {
	Network      string
	Address      string
	RegisterOpt  *registrarclient.ClientOpts
	RegisterFunc registerFunc
}

type Server

type Server interface {
	Run() error
	Stop()
	Discover(ctx context.Context, name string) (string, error)
	Subscribe(ctx context.Context, name string) (chan *pb.SubscribeResponse, error)
}

func NewServer

func NewServer(cfg *GrpcServerConfig, opt ...grpc.ServerOption) Server

Jump to

Keyboard shortcuts

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