Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSample(h ISample, e *edge.Server, preHandlers ...edge.Handler)
- func RegisterSampleCli(h ISampleCli, c edgec.Client, rootCmd *cobra.Command)
- func RegisterSampleWithFunc(h ISample, e *edge.Server, handlerFunc func(c uint64) []edge.Handler)
- func TunnelRequestSampleEcho(ctx *edge.RequestCtx, replicaSet uint64, req *EchoRequest, res *EchoResponse, ...) error
- type EchoRequest
- func (x *EchoRequest) Clone() *EchoRequest
- func (x *EchoRequest) DeepCopy(z *EchoRequest)
- func (*EchoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EchoRequest) GetID() int64
- func (x *EchoRequest) GetRandomText() string
- func (x *EchoRequest) Marshal() ([]byte, error)
- func (x *EchoRequest) MarshalJSON() ([]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
- func (x *EchoRequest) UnmarshalJSON(b []byte) error
- type EchoResponse
- func (x *EchoResponse) Clone() *EchoResponse
- func (x *EchoResponse) DeepCopy(z *EchoResponse)
- func (*EchoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EchoResponse) GetRandomText() string
- func (x *EchoResponse) GetReqID() int64
- func (x *EchoResponse) Marshal() ([]byte, error)
- func (x *EchoResponse) MarshalJSON() ([]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
- func (x *EchoResponse) UnmarshalJSON(b []byte) error
- type ISample
- type ISampleCli
- type ISampleClient
- type Sample
- type SampleCli
- type SampleClient
Constants ¶
View Source
const C_EchoRequest uint64 = 634453994073422796
View Source
const C_EchoResponse uint64 = 10208763112635265787
View Source
const C_SampleEcho uint64 = 5610266072904040111
Variables ¶
View Source
var File_sample_proto protoreflect.FileDescriptor
View Source
var PoolEchoRequest = poolEchoRequest{}
View Source
var PoolEchoResponse = poolEchoResponse{}
Functions ¶
func RegisterSampleCli ¶
func RegisterSampleCli(h ISampleCli, c edgec.Client, rootCmd *cobra.Command)
func RegisterSampleWithFunc ¶
func TunnelRequestSampleEcho ¶
func TunnelRequestSampleEcho( ctx *edge.RequestCtx, replicaSet uint64, req *EchoRequest, res *EchoResponse, kvs ...*rony.KeyValue, ) error
Types ¶
type EchoRequest ¶
type EchoRequest struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` RandomText string `protobuf:"bytes,2,opt,name=RandomText,proto3" json:"RandomText,omitempty"` // contains filtered or unexported fields }
EchoRequest
func (*EchoRequest) Clone ¶ added in v0.12.0
func (x *EchoRequest) Clone() *EchoRequest
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) GetID ¶
func (x *EchoRequest) GetID() int64
func (*EchoRequest) GetRandomText ¶ added in v0.10.4
func (x *EchoRequest) GetRandomText() string
func (*EchoRequest) Marshal ¶
func (x *EchoRequest) Marshal() ([]byte, error)
func (*EchoRequest) MarshalJSON ¶
func (x *EchoRequest) MarshalJSON() ([]byte, error)
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) ProtoReflect ¶
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (*EchoRequest) PushToContext ¶ added in v0.12.30
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
func (*EchoRequest) UnmarshalJSON ¶
func (x *EchoRequest) UnmarshalJSON(b []byte) error
type EchoResponse ¶
type EchoResponse struct { ReqID int64 `protobuf:"varint,1,opt,name=ReqID,proto3" json:"ReqID,omitempty"` RandomText string `protobuf:"bytes,2,opt,name=RandomText,proto3" json:"RandomText,omitempty"` // contains filtered or unexported fields }
EchoResponse
func (*EchoResponse) Clone ¶ added in v0.12.0
func (x *EchoResponse) Clone() *EchoResponse
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) GetRandomText ¶
func (x *EchoResponse) GetRandomText() string
func (*EchoResponse) GetReqID ¶
func (x *EchoResponse) GetReqID() int64
func (*EchoResponse) Marshal ¶
func (x *EchoResponse) Marshal() ([]byte, error)
func (*EchoResponse) MarshalJSON ¶
func (x *EchoResponse) MarshalJSON() ([]byte, error)
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) ProtoReflect ¶
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (*EchoResponse) PushToContext ¶ added in v0.12.30
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
func (*EchoResponse) UnmarshalJSON ¶
func (x *EchoResponse) UnmarshalJSON(b []byte) error
type ISample ¶
type ISample interface {
Echo(ctx *edge.RequestCtx, req *EchoRequest, res *EchoResponse) *rony.Error
}
type ISampleCli ¶
type ISampleCli interface {
Echo(cli *SampleClient, cmd *cobra.Command, args []string) error
}
type ISampleClient ¶ added in v0.15.2
type ISampleClient interface {
Echo(ctx context.Context, req *EchoRequest, kvs ...*rony.KeyValue) (*EchoResponse, error)
}
type Sample ¶
type Sample struct{}
Sample implements auto-generated ISample interface
func (*Sample) Echo ¶
func (s *Sample) Echo(ctx *edge.RequestCtx, req *EchoRequest, res *EchoResponse) *rony.Error
type SampleCli ¶
type SampleCli struct{}
SampleCli implements service.ISampleCli auto-generated interface
type SampleClient ¶
type SampleClient struct {
// contains filtered or unexported fields
}
func NewSampleClient ¶
func NewSampleClient(name string, ec edgec.Client) *SampleClient
func (*SampleClient) Echo ¶
func (c *SampleClient) Echo( ctx context.Context, req *EchoRequest, kvs ...*rony.KeyValue, ) (*EchoResponse, error)
Click to show internal directories.
Click to hide internal directories.