protos

package
v0.0.0-...-a5dcb18 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Code_name = map[int32]string{
	0: "success",
	1: "fail",
}
View Source
var Code_value = map[string]int32{
	"success": 0,
	"fail":    1,
}

Functions

func RegisterProcServer

func RegisterProcServer(s *grpc.Server, srv ProcServer)

Types

type Code

type Code int32
const (
	Code_success Code = 0
	Code_fail    Code = 1
)

func (Code) EnumDescriptor

func (Code) EnumDescriptor() ([]byte, []int)

func (Code) String

func (x Code) String() string

type ProcClient

type ProcClient interface {
	Info(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

ProcClient is the client API for Proc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewProcClient

func NewProcClient(cc grpc.ClientConnInterface) ProcClient

type ProcServer

type ProcServer interface {
	Info(context.Context, *Request) (*Response, error)
}

ProcServer is the server API for Proc service.

type Request

type Request struct {
	Proc                 []byte   `protobuf:"bytes,1,opt,name=proc,proto3" json:"proc,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetProc

func (m *Request) GetProc() []byte

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type Response

type Response struct {
	Code                 Code     `protobuf:"varint,1,opt,name=code,proto3,enum=protos.Code" json:"code,omitempty"`
	ErrMsg               string   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetCode

func (m *Response) GetCode() Code

func (*Response) GetErrMsg

func (m *Response) GetErrMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

type UnimplementedProcServer

type UnimplementedProcServer struct {
}

UnimplementedProcServer can be embedded to have forward compatible implementations.

func (*UnimplementedProcServer) Info

Jump to

Keyboard shortcuts

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