Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSample(h ISample, e *edge.Server)
- type EchoRequest
- func (x *EchoRequest) DeepCopy(z *EchoRequest)
- func (*EchoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EchoRequest) GetInt() int64
- func (x *EchoRequest) GetTimestamp() int64
- func (x *EchoRequest) Marshal() ([]byte, error)
- func (*EchoRequest) ProtoMessage()
- func (x *EchoRequest) ProtoReflect() protoreflect.Message
- func (x *EchoRequest) PushToContext(ctx *edge.RequestCtx)
- func (x *EchoRequest) Reset()
- func (x *EchoRequest) String() string
- func (x *EchoRequest) Unmarshal(b []byte) error
- type EchoResponse
- func (x *EchoResponse) DeepCopy(z *EchoResponse)
- func (*EchoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EchoResponse) GetDelay() int64
- func (x *EchoResponse) GetInt() int64
- func (x *EchoResponse) GetResponder() string
- func (x *EchoResponse) GetServerID() string
- func (x *EchoResponse) GetTimestamp() int64
- func (x *EchoResponse) Marshal() ([]byte, error)
- func (*EchoResponse) ProtoMessage()
- func (x *EchoResponse) ProtoReflect() protoreflect.Message
- func (x *EchoResponse) PushToContext(ctx *edge.RequestCtx)
- func (x *EchoResponse) Reset()
- func (x *EchoResponse) String() string
- func (x *EchoResponse) Unmarshal(b []byte) error
- type ISample
- type SampleClient
- type SampleWrapper
- func (sw *SampleWrapper) EchoLeaderOnlyWrapper(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
- func (sw *SampleWrapper) EchoTunnelWrapper(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
- func (sw *SampleWrapper) EchoWrapper(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
- func (sw *SampleWrapper) Register(e *edge.Server)
Constants ¶
View Source
const C_Echo int64 = 3073810188
View Source
const C_EchoLeaderOnly int64 = 27569121
View Source
const C_EchoRequest int64 = 1904100324
View Source
const C_EchoResponse int64 = 4192619139
View Source
const C_EchoTunnel int64 = 3809767204
Variables ¶
View Source
var File_service_proto protoreflect.FileDescriptor
View Source
var PoolEchoRequest = poolEchoRequest{}
View Source
var PoolEchoResponse = poolEchoResponse{}
Functions ¶
func RegisterSample ¶
Types ¶
type EchoRequest ¶
type EchoRequest struct { Int int64 `protobuf:"varint,1,opt,name=Int,proto3" json:"Int,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` // contains filtered or unexported fields }
func (*EchoRequest) DeepCopy ¶
func (x *EchoRequest) DeepCopy(z *EchoRequest)
func (*EchoRequest) Descriptor
deprecated
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (*EchoRequest) GetInt ¶
func (x *EchoRequest) GetInt() int64
func (*EchoRequest) GetTimestamp ¶
func (x *EchoRequest) GetTimestamp() int64
func (*EchoRequest) Marshal ¶ added in v0.0.17
func (x *EchoRequest) Marshal() ([]byte, error)
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) ProtoReflect ¶
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (*EchoRequest) PushToContext ¶
func (x *EchoRequest) PushToContext(ctx *edge.RequestCtx)
func (*EchoRequest) Reset ¶
func (x *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (x *EchoRequest) String() string
func (*EchoRequest) Unmarshal ¶
func (x *EchoRequest) Unmarshal(b []byte) error
type EchoResponse ¶
type EchoResponse struct { Int int64 `protobuf:"varint,1,opt,name=Int,proto3" json:"Int,omitempty"` Responder string `protobuf:"bytes,2,opt,name=Responder,proto3" json:"Responder,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Delay int64 `protobuf:"varint,5,opt,name=Delay,proto3" json:"Delay,omitempty"` ServerID string `protobuf:"bytes,6,opt,name=ServerID,proto3" json:"ServerID,omitempty"` // contains filtered or unexported fields }
func (*EchoResponse) DeepCopy ¶
func (x *EchoResponse) DeepCopy(z *EchoResponse)
func (*EchoResponse) Descriptor
deprecated
func (*EchoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
func (*EchoResponse) GetDelay ¶
func (x *EchoResponse) GetDelay() int64
func (*EchoResponse) GetInt ¶
func (x *EchoResponse) GetInt() int64
func (*EchoResponse) GetResponder ¶ added in v0.1.5
func (x *EchoResponse) GetResponder() string
func (*EchoResponse) GetServerID ¶
func (x *EchoResponse) GetServerID() string
func (*EchoResponse) GetTimestamp ¶
func (x *EchoResponse) GetTimestamp() int64
func (*EchoResponse) Marshal ¶ added in v0.0.17
func (x *EchoResponse) Marshal() ([]byte, error)
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) ProtoReflect ¶
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (*EchoResponse) PushToContext ¶
func (x *EchoResponse) PushToContext(ctx *edge.RequestCtx)
func (*EchoResponse) Reset ¶
func (x *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (x *EchoResponse) String() string
func (*EchoResponse) Unmarshal ¶
func (x *EchoResponse) Unmarshal(b []byte) error
type ISample ¶
type ISample interface { Echo(ctx *edge.RequestCtx, req *EchoRequest, res *EchoResponse) EchoLeaderOnly(ctx *edge.RequestCtx, req *EchoRequest, res *EchoResponse) EchoTunnel(ctx *edge.RequestCtx, req *EchoRequest, res *EchoResponse) }
type SampleClient ¶
type SampleClient struct {
// contains filtered or unexported fields
}
func NewSampleClient ¶
func NewSampleClient(ec edgec.Client) *SampleClient
func (*SampleClient) Echo ¶
func (c *SampleClient) Echo(req *EchoRequest, kvs ...*rony.KeyValue) (*EchoResponse, error)
func (*SampleClient) EchoLeaderOnly ¶ added in v0.1.5
func (c *SampleClient) EchoLeaderOnly(req *EchoRequest, kvs ...*rony.KeyValue) (*EchoResponse, error)
func (*SampleClient) EchoTunnel ¶ added in v0.1.5
func (c *SampleClient) EchoTunnel(req *EchoRequest, kvs ...*rony.KeyValue) (*EchoResponse, error)
type SampleWrapper ¶
type SampleWrapper struct {
// contains filtered or unexported fields
}
func (*SampleWrapper) EchoLeaderOnlyWrapper ¶ added in v0.1.5
func (sw *SampleWrapper) EchoLeaderOnlyWrapper(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
func (*SampleWrapper) EchoTunnelWrapper ¶ added in v0.1.5
func (sw *SampleWrapper) EchoTunnelWrapper(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
func (*SampleWrapper) EchoWrapper ¶
func (sw *SampleWrapper) EchoWrapper(ctx *edge.RequestCtx, in *rony.MessageEnvelope)
func (*SampleWrapper) Register ¶
func (sw *SampleWrapper) Register(e *edge.Server)
Click to show internal directories.
Click to hide internal directories.