server

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(address string) error

NewGRPCServer new a grpc server

func NewHTTPServer

func NewHTTPServer(address string) error

NewHTTPServer new a http server

Types

type GRPCServer

type GRPCServer struct{}

GRPCServer grpc server

func (*GRPCServer) DoOptim

func (gs *GRPCServer) DoOptim(ctx context.Context, in *pb.OptimRequest) (reply *pb.OptimReply, err error)

DoOptim do optim

type Text

type Text struct {
	Data []byte          `json:"data,omitempty"`
	Type tiny.EncodeType `json:"type,omitempty"`
}

Text optim text info

Jump to

Keyboard shortcuts

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