Documentation ¶
Index ¶
- Variables
- func RegisterServerLoadServer(s *grpc.Server, srv ServerLoadServer)
- type Envelope
- type Payload
- type ServerLoadClient
- type ServerLoadReq
- type ServerLoadServer
- type ServerLoadsResp
- func (*ServerLoadsResp) Descriptor() ([]byte, []int)deprecated
- func (x *ServerLoadsResp) GetLoads() []byte
- func (x *ServerLoadsResp) GetServerId() string
- func (*ServerLoadsResp) ProtoMessage()
- func (x *ServerLoadsResp) ProtoReflect() protoreflect.Message
- func (x *ServerLoadsResp) Reset()
- func (x *ServerLoadsResp) String() string
- type SignatureHeader
- func (*SignatureHeader) Descriptor() ([]byte, []int)deprecated
- func (x *SignatureHeader) GetCreator() []byte
- func (x *SignatureHeader) GetNonce() []byte
- func (*SignatureHeader) ProtoMessage()
- func (x *SignatureHeader) ProtoReflect() protoreflect.Message
- func (x *SignatureHeader) Reset()
- func (x *SignatureHeader) String() string
- type UnimplementedServerLoadServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_default_proto protoreflect.FileDescriptor
View Source
var File_loads_proto protoreflect.FileDescriptor
Functions ¶
func RegisterServerLoadServer ¶
func RegisterServerLoadServer(s *grpc.Server, srv ServerLoadServer)
Types ¶
type Envelope ¶
type Envelope struct { Payload []byte `protobuf:"bytes,1,opt,name=Payload,proto3" json:"Payload,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=Signature,proto3" json:"Signature,omitempty"` // contains filtered or unexported fields }
func (*Envelope) Descriptor
deprecated
func (*Envelope) GetPayload ¶
func (*Envelope) GetSignature ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) ProtoReflect ¶
func (x *Envelope) ProtoReflect() protoreflect.Message
type Payload ¶
type Payload struct { Header *SignatureHeader `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*Payload) Descriptor
deprecated
func (*Payload) GetHeader ¶
func (x *Payload) GetHeader() *SignatureHeader
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
type ServerLoadClient ¶
type ServerLoadClient interface {
Load(ctx context.Context, in *ServerLoadReq, opts ...grpc.CallOption) (*ServerLoadsResp, error)
}
ServerLoadClient is the client API for ServerLoad service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServerLoadClient ¶
func NewServerLoadClient(cc grpc.ClientConnInterface) ServerLoadClient
type ServerLoadReq ¶
type ServerLoadReq struct { Current bool `protobuf:"varint,1,opt,name=Current,proto3" json:"Current,omitempty"` // contains filtered or unexported fields }
func (*ServerLoadReq) Descriptor
deprecated
func (*ServerLoadReq) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoadReq.ProtoReflect.Descriptor instead.
func (*ServerLoadReq) GetCurrent ¶
func (x *ServerLoadReq) GetCurrent() bool
func (*ServerLoadReq) ProtoMessage ¶
func (*ServerLoadReq) ProtoMessage()
func (*ServerLoadReq) ProtoReflect ¶
func (x *ServerLoadReq) ProtoReflect() protoreflect.Message
func (*ServerLoadReq) Reset ¶
func (x *ServerLoadReq) Reset()
func (*ServerLoadReq) String ¶
func (x *ServerLoadReq) String() string
type ServerLoadServer ¶
type ServerLoadServer interface {
Load(context.Context, *ServerLoadReq) (*ServerLoadsResp, error)
}
ServerLoadServer is the server API for ServerLoad service.
type ServerLoadsResp ¶
type ServerLoadsResp struct { ServerId string `protobuf:"bytes,1,opt,name=ServerId,proto3" json:"ServerId,omitempty"` Loads []byte `protobuf:"bytes,2,opt,name=Loads,proto3" json:"Loads,omitempty"` // contains filtered or unexported fields }
func (*ServerLoadsResp) Descriptor
deprecated
func (*ServerLoadsResp) Descriptor() ([]byte, []int)
Deprecated: Use ServerLoadsResp.ProtoReflect.Descriptor instead.
func (*ServerLoadsResp) GetLoads ¶
func (x *ServerLoadsResp) GetLoads() []byte
func (*ServerLoadsResp) GetServerId ¶
func (x *ServerLoadsResp) GetServerId() string
func (*ServerLoadsResp) ProtoMessage ¶
func (*ServerLoadsResp) ProtoMessage()
func (*ServerLoadsResp) ProtoReflect ¶
func (x *ServerLoadsResp) ProtoReflect() protoreflect.Message
func (*ServerLoadsResp) Reset ¶
func (x *ServerLoadsResp) Reset()
func (*ServerLoadsResp) String ¶
func (x *ServerLoadsResp) String() string
type SignatureHeader ¶
type SignatureHeader struct { Creator []byte `protobuf:"bytes,1,opt,name=Creator,proto3" json:"Creator,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=Nonce,proto3" json:"Nonce,omitempty"` // contains filtered or unexported fields }
func (*SignatureHeader) Descriptor
deprecated
func (*SignatureHeader) Descriptor() ([]byte, []int)
Deprecated: Use SignatureHeader.ProtoReflect.Descriptor instead.
func (*SignatureHeader) GetCreator ¶
func (x *SignatureHeader) GetCreator() []byte
func (*SignatureHeader) GetNonce ¶
func (x *SignatureHeader) GetNonce() []byte
func (*SignatureHeader) ProtoMessage ¶
func (*SignatureHeader) ProtoMessage()
func (*SignatureHeader) ProtoReflect ¶
func (x *SignatureHeader) ProtoReflect() protoreflect.Message
func (*SignatureHeader) Reset ¶
func (x *SignatureHeader) Reset()
func (*SignatureHeader) String ¶
func (x *SignatureHeader) String() string
type UnimplementedServerLoadServer ¶
type UnimplementedServerLoadServer struct { }
UnimplementedServerLoadServer can be embedded to have forward compatible implementations.
func (*UnimplementedServerLoadServer) Load ¶
func (*UnimplementedServerLoadServer) Load(context.Context, *ServerLoadReq) (*ServerLoadsResp, error)
Click to show internal directories.
Click to hide internal directories.