common

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetPayload

func (x *Envelope) GetPayload() []byte

func (*Envelope) GetSignature

func (x *Envelope) GetSignature() []byte

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

func (x *Envelope) ProtoReflect() protoreflect.Message

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) String

func (x *Envelope) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetData

func (x *Payload) GetData() []byte

func (*Payload) GetHeader

func (x *Payload) GetHeader() *SignatureHeader

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

func (x *Payload) ProtoReflect() protoreflect.Message

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

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

Jump to

Keyboard shortcuts

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