server

package
v0.0.0-...-5bac610 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package server is a generated protocol buffer package.

It is generated from these files:

guid.proto

It has these top-level messages:

Req
Resp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGuidServer

func RegisterGuidServer(s *grpc.Server, srv GuidServer)

Types

type GrpcServer

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

func NewGrpcServer

func NewGrpcServer(generator common.Generator) *GrpcServer

func (*GrpcServer) GetGuid

func (this *GrpcServer) GetGuid(context.Context, *Req) (*Resp, error)

func (*GrpcServer) Start

func (this *GrpcServer) Start() error

func (*GrpcServer) Wait

func (this *GrpcServer) Wait()

type GuidClient

type GuidClient interface {
	GetGuid(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Resp, error)
}

func NewGuidClient

func NewGuidClient(cc *grpc.ClientConn) GuidClient

type GuidServer

type GuidServer interface {
	GetGuid(context.Context, *Req) (*Resp, error)
}

type Req

type Req struct {
	XXX_unrecognized []byte `json:"-"`
}

func (*Req) Descriptor

func (*Req) Descriptor() ([]byte, []int)

func (*Req) ProtoMessage

func (*Req) ProtoMessage()

func (*Req) Reset

func (m *Req) Reset()

func (*Req) String

func (m *Req) String() string

type Resp

type Resp struct {
	Code             *int32  `protobuf:"varint,1,req,name=code" json:"code,omitempty"`
	Guid             *uint64 `protobuf:"varint,2,req,name=guid" json:"guid,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Resp) Descriptor

func (*Resp) Descriptor() ([]byte, []int)

func (*Resp) GetCode

func (m *Resp) GetCode() int32

func (*Resp) GetGuid

func (m *Resp) GetGuid() uint64

func (*Resp) ProtoMessage

func (*Resp) ProtoMessage()

func (*Resp) Reset

func (m *Resp) Reset()

func (*Resp) String

func (m *Resp) String() string

type TcpServer

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

func NewTcpServer

func NewTcpServer(generator common.Generator) *TcpServer

func (*TcpServer) Start

func (this *TcpServer) Start() error

func (*TcpServer) Wait

func (this *TcpServer) Wait()

Jump to

Keyboard shortcuts

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