v1

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API string
const GrpcApi API = "grpc"
const RestApi API = "rest"

type GRPCServer

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

func (*GRPCServer) Serve

func (g *GRPCServer) Serve() error

type RESTServer

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

func (*RESTServer) Serve

func (r *RESTServer) Serve() error

type Server

type Server interface {
	Serve() error
}

func New

func New(api API, adr string) (Server, error)

Jump to

Keyboard shortcuts

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