manager

package
v0.0.0-...-162f8c7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagName              = "protobuf"
	SearchWordColumnName = "search_word"
)

Variables

This section is empty.

Functions

func BuildFilterConditions

func BuildFilterConditions(req Request, tableName string, exclude ...string) dbr.Builder

func BuildFilterConditionsWithPrefix

func BuildFilterConditionsWithPrefix(req Request, tableName string, exclude ...string) dbr.Builder

func BuildUpdateAttributes

func BuildUpdateAttributes(req Request, columns ...string) map[string]interface{}

func NewClient

func NewClient(ctx context.Context, host string, port int) (*grpc.ClientConn, error)

Types

type GrpcServer

type GrpcServer struct {
	ServiceName string
	Port        int
}

func NewGrpcServer

func NewGrpcServer(serviceName string, port int) *GrpcServer

func (*GrpcServer) Serve

func (g *GrpcServer) Serve(callback RegisterCallback)

type RegisterCallback

type RegisterCallback func(*grpc.Server)

type Request

type Request interface {
	Reset()
	String() string
	ProtoMessage()
	Descriptor() ([]byte, []int)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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