server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Network string
	Address string
}

type Grpc

type Grpc struct {
}

func (*Grpc) Server

func (s *Grpc) Server(config *Config, registerGrpc RegisterGrpc, registerGrpcHttp RegisterGrpcHttp, registerHttp RegisterHttp) error

type RegisterGrpc

type RegisterGrpc func(s *grpc.Server) error

type RegisterGrpcHttp

type RegisterGrpcHttp func(ctx context.Context, mux *runtime.ServeMux, addr string, dialOption []grpc.DialOption) error

type RegisterHttp

type RegisterHttp func(mux *http.ServeMux) error

type RegisterValidate

type RegisterValidate func(validator.Validate) error

type Server

type Server interface {
	Server(config *Config, registerServer RegisterGrpc, registerGrpcHttp RegisterGrpcHttp, registerHttp RegisterHttp) error
}

func NewServer

func NewServer() Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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