test

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestMessage_TestEnum_name = map[int32]string{
		0: "TEST_ENUM_VAL_0",
		1: "TEST_ENUM_VAL_1",
		2: "TEST_ENUM_VAL_2",
	}
	TestMessage_TestEnum_value = map[string]int32{
		"TEST_ENUM_VAL_0": 0,
		"TEST_ENUM_VAL_1": 1,
		"TEST_ENUM_VAL_2": 2,
	}
)

Enum value maps for TestMessage_TestEnum.

View Source
var File_rpc_test_test_proto protoreflect.FileDescriptor

Functions

func RegisterRPCTestService

func RegisterRPCTestService(host rpc.ServiceRegistry, service RPCTestService)

RegisterRPCTestService ...

Types

type RPCCallStreamRequest

type RPCCallStreamRequest struct {
	Id    uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCCallStreamRequest) Descriptor deprecated

func (*RPCCallStreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use RPCCallStreamRequest.ProtoReflect.Descriptor instead.

func (*RPCCallStreamRequest) GetCount

func (x *RPCCallStreamRequest) GetCount() uint64

func (*RPCCallStreamRequest) GetId

func (x *RPCCallStreamRequest) GetId() uint64

func (*RPCCallStreamRequest) ProtoMessage

func (*RPCCallStreamRequest) ProtoMessage()

func (*RPCCallStreamRequest) ProtoReflect

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

func (*RPCCallStreamRequest) Reset

func (x *RPCCallStreamRequest) Reset()

func (*RPCCallStreamRequest) String

func (x *RPCCallStreamRequest) String() string

type RPCCallStreamResponse

type RPCCallStreamResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCCallStreamResponse) Descriptor deprecated

func (*RPCCallStreamResponse) Descriptor() ([]byte, []int)

Deprecated: Use RPCCallStreamResponse.ProtoReflect.Descriptor instead.

func (*RPCCallStreamResponse) GetId

func (x *RPCCallStreamResponse) GetId() uint64

func (*RPCCallStreamResponse) ProtoMessage

func (*RPCCallStreamResponse) ProtoMessage()

func (*RPCCallStreamResponse) ProtoReflect

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

func (*RPCCallStreamResponse) Reset

func (x *RPCCallStreamResponse) Reset()

func (*RPCCallStreamResponse) String

func (x *RPCCallStreamResponse) String() string

type RPCCallUnaryRequest

type RPCCallUnaryRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCCallUnaryRequest) Descriptor deprecated

func (*RPCCallUnaryRequest) Descriptor() ([]byte, []int)

Deprecated: Use RPCCallUnaryRequest.ProtoReflect.Descriptor instead.

func (*RPCCallUnaryRequest) GetId

func (x *RPCCallUnaryRequest) GetId() uint64

func (*RPCCallUnaryRequest) ProtoMessage

func (*RPCCallUnaryRequest) ProtoMessage()

func (*RPCCallUnaryRequest) ProtoReflect

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

func (*RPCCallUnaryRequest) Reset

func (x *RPCCallUnaryRequest) Reset()

func (*RPCCallUnaryRequest) String

func (x *RPCCallUnaryRequest) String() string

type RPCCallUnaryResponse

type RPCCallUnaryResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RPCCallUnaryResponse) Descriptor deprecated

func (*RPCCallUnaryResponse) Descriptor() ([]byte, []int)

Deprecated: Use RPCCallUnaryResponse.ProtoReflect.Descriptor instead.

func (*RPCCallUnaryResponse) GetId

func (x *RPCCallUnaryResponse) GetId() uint64

func (*RPCCallUnaryResponse) ProtoMessage

func (*RPCCallUnaryResponse) ProtoMessage()

func (*RPCCallUnaryResponse) ProtoReflect

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

func (*RPCCallUnaryResponse) Reset

func (x *RPCCallUnaryResponse) Reset()

func (*RPCCallUnaryResponse) String

func (x *RPCCallUnaryResponse) String() string

type RPCTestClient

type RPCTestClient struct {
	// contains filtered or unexported fields
}

RPCTestClient ...

func NewRPCTestClient

func NewRPCTestClient(client rpc.Caller) *RPCTestClient

NewRPCTestClient ...

func (*RPCTestClient) CallStream

func (c *RPCTestClient) CallStream(
	ctx context.Context,
	req *RPCCallStreamRequest,
	res chan *RPCCallStreamResponse,
) error

CallStream ...

func (*RPCTestClient) CallUnary

CallUnary ...

type RPCTestService

type RPCTestService interface {
	CallUnary(
		ctx context.Context,
		req *RPCCallUnaryRequest,
	) (*RPCCallUnaryResponse, error)
	CallStream(
		ctx context.Context,
		req *RPCCallStreamRequest,
	) (<-chan *RPCCallStreamResponse, error)
}

RPCTestService ...

type TestMessage added in v0.1.11

type TestMessage struct {
	Int32Value    int32                `protobuf:"varint,1,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Int64Value    int64                `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	Uint32Value   uint32               `protobuf:"varint,3,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
	Uint64Value   uint64               `protobuf:"varint,4,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	Sint32Value   int32                `protobuf:"zigzag32,5,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"`
	Sint64Value   int64                `protobuf:"zigzag64,6,opt,name=sint64_value,json=sint64Value,proto3" json:"sint64_value,omitempty"`
	BoolValue     bool                 `protobuf:"varint,7,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	EnumValue     TestMessage_TestEnum `` /* 131-byte string literal not displayed */
	Fixed64Value  uint64               `protobuf:"fixed64,9,opt,name=fixed64_value,json=fixed64Value,proto3" json:"fixed64_value,omitempty"`
	Sfixed64Value int64                `protobuf:"fixed64,10,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"`
	DoubleValue   float64              `protobuf:"fixed64,11,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	StringValue   string               `protobuf:"bytes,12,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BytesValue    []byte               `protobuf:"bytes,13,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
	Fixed32Value  uint32               `protobuf:"fixed32,14,opt,name=fixed32_value,json=fixed32Value,proto3" json:"fixed32_value,omitempty"`
	SfixedValue   int32                `protobuf:"fixed32,15,opt,name=sfixed_value,json=sfixedValue,proto3" json:"sfixed_value,omitempty"`
	FloatValue    float32              `protobuf:"fixed32,16,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
	// contains filtered or unexported fields
}

func (*TestMessage) Descriptor deprecated added in v0.1.11

func (*TestMessage) Descriptor() ([]byte, []int)

Deprecated: Use TestMessage.ProtoReflect.Descriptor instead.

func (*TestMessage) GetBoolValue added in v0.1.11

func (x *TestMessage) GetBoolValue() bool

func (*TestMessage) GetBytesValue added in v0.1.11

func (x *TestMessage) GetBytesValue() []byte

func (*TestMessage) GetDoubleValue added in v0.1.11

func (x *TestMessage) GetDoubleValue() float64

func (*TestMessage) GetEnumValue added in v0.1.11

func (x *TestMessage) GetEnumValue() TestMessage_TestEnum

func (*TestMessage) GetFixed32Value added in v0.1.11

func (x *TestMessage) GetFixed32Value() uint32

func (*TestMessage) GetFixed64Value added in v0.1.11

func (x *TestMessage) GetFixed64Value() uint64

func (*TestMessage) GetFloatValue added in v0.1.11

func (x *TestMessage) GetFloatValue() float32

func (*TestMessage) GetInt32Value added in v0.1.11

func (x *TestMessage) GetInt32Value() int32

func (*TestMessage) GetInt64Value added in v0.1.11

func (x *TestMessage) GetInt64Value() int64

func (*TestMessage) GetSfixed64Value added in v0.1.11

func (x *TestMessage) GetSfixed64Value() int64

func (*TestMessage) GetSfixedValue added in v0.1.11

func (x *TestMessage) GetSfixedValue() int32

func (*TestMessage) GetSint32Value added in v0.1.11

func (x *TestMessage) GetSint32Value() int32

func (*TestMessage) GetSint64Value added in v0.1.11

func (x *TestMessage) GetSint64Value() int64

func (*TestMessage) GetStringValue added in v0.1.11

func (x *TestMessage) GetStringValue() string

func (*TestMessage) GetUint32Value added in v0.1.11

func (x *TestMessage) GetUint32Value() uint32

func (*TestMessage) GetUint64Value added in v0.1.11

func (x *TestMessage) GetUint64Value() uint64

func (*TestMessage) ProtoMessage added in v0.1.11

func (*TestMessage) ProtoMessage()

func (*TestMessage) ProtoReflect added in v0.1.11

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

func (*TestMessage) Reset added in v0.1.11

func (x *TestMessage) Reset()

func (*TestMessage) String added in v0.1.11

func (x *TestMessage) String() string

type TestMessage_TestEnum added in v0.1.11

type TestMessage_TestEnum int32
const (
	TestMessage_TEST_ENUM_VAL_0 TestMessage_TestEnum = 0
	TestMessage_TEST_ENUM_VAL_1 TestMessage_TestEnum = 1
	TestMessage_TEST_ENUM_VAL_2 TestMessage_TestEnum = 2
)

func (TestMessage_TestEnum) Descriptor added in v0.1.11

func (TestMessage_TestEnum) Enum added in v0.1.11

func (TestMessage_TestEnum) EnumDescriptor deprecated added in v0.1.11

func (TestMessage_TestEnum) EnumDescriptor() ([]byte, []int)

Deprecated: Use TestMessage_TestEnum.Descriptor instead.

func (TestMessage_TestEnum) Number added in v0.1.11

func (TestMessage_TestEnum) String added in v0.1.11

func (x TestMessage_TestEnum) String() string

func (TestMessage_TestEnum) Type added in v0.1.11

Jump to

Keyboard shortcuts

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