server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type HttpServer

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

func NewHttpServer

func NewHttpServer(cfg config.Config, srv http.Provider, handlerSet *RestfulHandlerSet) *HttpServer

func (*HttpServer) Addr

func (srv *HttpServer) Addr() string

func (*HttpServer) Name

func (srv *HttpServer) Name() string

func (*HttpServer) Run

func (srv *HttpServer) Run() error

func (*HttpServer) Shutdown

func (srv *HttpServer) Shutdown() error

type RestfulHandlerSet

type RestfulHandlerSet struct {
	Greeter *restful.GreeterRestfulHandler
}

type RpcHandlerSet

type RpcHandlerSet struct {
	Greeter *rpcHandler.GreeterRpcServerHandler
}

type RpcServer

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

func NewRpcServer

func NewRpcServer(conf config.Config, srv rpc.Provider, handlerSet *RpcHandlerSet) *RpcServer

func (*RpcServer) Addr

func (srv *RpcServer) Addr() string

func (*RpcServer) Name

func (srv *RpcServer) Name() string

func (*RpcServer) Run

func (srv *RpcServer) Run() error

func (*RpcServer) Shutdown

func (srv *RpcServer) Shutdown() error

Jump to

Keyboard shortcuts

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