proto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterPluginServer

func RegisterPluginServer(s *grpc.Server, srv PluginServer)

Types

type CallReply

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

func (*CallReply) Descriptor

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

func (*CallReply) GetData

func (m *CallReply) GetData() []byte

func (*CallReply) Marshal

func (m *CallReply) Marshal() (dAtA []byte, err error)

func (*CallReply) MarshalTo

func (m *CallReply) MarshalTo(dAtA []byte) (int, error)

func (*CallReply) ProtoMessage

func (*CallReply) ProtoMessage()

func (*CallReply) Reset

func (m *CallReply) Reset()

func (*CallReply) Size

func (m *CallReply) Size() (n int)

func (*CallReply) String

func (m *CallReply) String() string

func (*CallReply) Unmarshal

func (m *CallReply) Unmarshal(dAtA []byte) error

func (*CallReply) XXX_DiscardUnknown

func (m *CallReply) XXX_DiscardUnknown()

func (*CallReply) XXX_Marshal

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

func (*CallReply) XXX_Merge

func (dst *CallReply) XXX_Merge(src proto.Message)

func (*CallReply) XXX_Size

func (m *CallReply) XXX_Size() int

func (*CallReply) XXX_Unmarshal

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

type CallReq

type CallReq struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Args                 []byte   `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CallReq) Descriptor

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

func (*CallReq) GetArgs

func (m *CallReq) GetArgs() []byte

func (*CallReq) GetName

func (m *CallReq) GetName() string

func (*CallReq) Marshal

func (m *CallReq) Marshal() (dAtA []byte, err error)

func (*CallReq) MarshalTo

func (m *CallReq) MarshalTo(dAtA []byte) (int, error)

func (*CallReq) ProtoMessage

func (*CallReq) ProtoMessage()

func (*CallReq) Reset

func (m *CallReq) Reset()

func (*CallReq) Size

func (m *CallReq) Size() (n int)

func (*CallReq) String

func (m *CallReq) String() string

func (*CallReq) Unmarshal

func (m *CallReq) Unmarshal(dAtA []byte) error

func (*CallReq) XXX_DiscardUnknown

func (m *CallReq) XXX_DiscardUnknown()

func (*CallReq) XXX_Marshal

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

func (*CallReq) XXX_Merge

func (dst *CallReq) XXX_Merge(src proto.Message)

func (*CallReq) XXX_Size

func (m *CallReq) XXX_Size() int

func (*CallReq) XXX_Unmarshal

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

type GetReply

type GetReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetReply) Descriptor

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

func (*GetReply) Marshal

func (m *GetReply) Marshal() (dAtA []byte, err error)

func (*GetReply) MarshalTo

func (m *GetReply) MarshalTo(dAtA []byte) (int, error)

func (*GetReply) ProtoMessage

func (*GetReply) ProtoMessage()

func (*GetReply) Reset

func (m *GetReply) Reset()

func (*GetReply) Size

func (m *GetReply) Size() (n int)

func (*GetReply) String

func (m *GetReply) String() string

func (*GetReply) Unmarshal

func (m *GetReply) Unmarshal(dAtA []byte) error

func (*GetReply) XXX_DiscardUnknown

func (m *GetReply) XXX_DiscardUnknown()

func (*GetReply) XXX_Marshal

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

func (*GetReply) XXX_Merge

func (dst *GetReply) XXX_Merge(src proto.Message)

func (*GetReply) XXX_Size

func (m *GetReply) XXX_Size() int

func (*GetReply) XXX_Unmarshal

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

type GetReq

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

func (*GetReq) Descriptor

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

func (*GetReq) GetName

func (m *GetReq) GetName() string

func (*GetReq) Marshal

func (m *GetReq) Marshal() (dAtA []byte, err error)

func (*GetReq) MarshalTo

func (m *GetReq) MarshalTo(dAtA []byte) (int, error)

func (*GetReq) ProtoMessage

func (*GetReq) ProtoMessage()

func (*GetReq) Reset

func (m *GetReq) Reset()

func (*GetReq) Size

func (m *GetReq) Size() (n int)

func (*GetReq) String

func (m *GetReq) String() string

func (*GetReq) Unmarshal

func (m *GetReq) Unmarshal(dAtA []byte) error

func (*GetReq) XXX_DiscardUnknown

func (m *GetReq) XXX_DiscardUnknown()

func (*GetReq) XXX_Marshal

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

func (*GetReq) XXX_Merge

func (dst *GetReq) XXX_Merge(src proto.Message)

func (*GetReq) XXX_Size

func (m *GetReq) XXX_Size() int

func (*GetReq) XXX_Unmarshal

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

type PluginClient

type PluginClient interface {
	Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetReply, error)
	Call(ctx context.Context, in *CallReq, opts ...grpc.CallOption) (*CallReply, error)
}

PluginClient is the client API for Plugin service.

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

func NewPluginClient

func NewPluginClient(cc *grpc.ClientConn) PluginClient

type PluginServer

type PluginServer interface {
	Get(context.Context, *GetReq) (*GetReply, error)
	Call(context.Context, *CallReq) (*CallReply, error)
}

PluginServer is the server API for Plugin service.

Jump to

Keyboard shortcuts

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