pb

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

rpc.proto

It has these top-level messages:

RequestContext
ResponseContext

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRPCServer

func RegisterRPCServer(s *grpc.Server, srv RPCServer)

Types

type RPCClient

type RPCClient interface {
	Request(ctx context.Context, in *RequestContext, opts ...grpc.CallOption) (*ResponseContext, error)
}

func NewRPCClient

func NewRPCClient(cc *grpc.ClientConn) RPCClient

type RPCServer

type RPCServer interface {
	Request(context.Context, *RequestContext) (*ResponseContext, error)
}

type RequestContext

type RequestContext struct {
	Service string `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"`
	Method  string `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
	Header  string `protobuf:"bytes,3,opt,name=header" json:"header,omitempty"`
	Input   string `protobuf:"bytes,4,opt,name=input" json:"input,omitempty"`
}

func (*RequestContext) Descriptor

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

func (*RequestContext) GetHeader

func (m *RequestContext) GetHeader() string

func (*RequestContext) GetInput

func (m *RequestContext) GetInput() string

func (*RequestContext) GetMethod

func (m *RequestContext) GetMethod() string

func (*RequestContext) GetService

func (m *RequestContext) GetService() string

func (*RequestContext) ProtoMessage

func (*RequestContext) ProtoMessage()

func (*RequestContext) Reset

func (m *RequestContext) Reset()

func (*RequestContext) String

func (m *RequestContext) String() string

type ResponseContext

type ResponseContext struct {
	Status int32  `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
	Header string `protobuf:"bytes,2,opt,name=header" json:"header,omitempty"`
	Result string `protobuf:"bytes,3,opt,name=result" json:"result,omitempty"`
}

func (*ResponseContext) Descriptor

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

func (*ResponseContext) GetHeader

func (m *ResponseContext) GetHeader() string

func (*ResponseContext) GetResult

func (m *ResponseContext) GetResult() string

func (*ResponseContext) GetStatus

func (m *ResponseContext) GetStatus() int32

func (*ResponseContext) ProtoMessage

func (*ResponseContext) ProtoMessage()

func (*ResponseContext) Reset

func (m *ResponseContext) Reset()

func (*ResponseContext) String

func (m *ResponseContext) String() string

Jump to

Keyboard shortcuts

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