service

package
v0.14.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

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 RegisterSample

func RegisterSample(h ISample, e *edge.Server, preHandlers ...edge.Handler)

func RegisterSampleCli

func RegisterSampleCli(h ISampleCli, c edgec.Client, rootCmd *cobra.Command)

func RegisterSampleWithFunc

func RegisterSampleWithFunc(h ISample, e *edge.Server, handlerFunc func(c uint64) []edge.Handler)

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 Sample

type Sample struct{}

Sample implements auto-generated service.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

func (*SampleCli) Echo

func (s *SampleCli) Echo(cli *SampleClient, cmd *cobra.Command, args []string) error

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)

Jump to

Keyboard shortcuts

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