rpc

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Call_Kind_name = map[int32]string{
		0: "CALL_KIND_DEFAULT",
		1: "CALL_KIND_ERROR",
		2: "CALL_KIND_CANCEL",
		3: "CALL_KIND_CLOSE",
		4: "CALL_KIND_UNDEFINED",
	}
	Call_Kind_value = map[string]int32{
		"CALL_KIND_DEFAULT":   0,
		"CALL_KIND_ERROR":     1,
		"CALL_KIND_CANCEL":    2,
		"CALL_KIND_CLOSE":     3,
		"CALL_KIND_UNDEFINED": 4,
	}
)

Enum value maps for Call_Kind.

View Source
var File_rpc_rpc_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Call

type Call struct {
	Id       uint64            `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId uint64            `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Method   string            `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	Kind     Call_Kind         `protobuf:"varint,4,opt,name=kind,proto3,enum=strims.rpc.Call_Kind" json:"kind,omitempty"`
	Argument []byte            `protobuf:"bytes,5,opt,name=argument,proto3" json:"argument,omitempty"`
	Headers  map[string][]byte `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Call) Descriptor deprecated

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

Deprecated: Use Call.ProtoReflect.Descriptor instead.

func (*Call) GetArgument

func (x *Call) GetArgument() []byte

func (*Call) GetHeaders

func (x *Call) GetHeaders() map[string][]byte

func (*Call) GetId

func (x *Call) GetId() uint64

func (*Call) GetKind added in v0.2.0

func (x *Call) GetKind() Call_Kind

func (*Call) GetMethod

func (x *Call) GetMethod() string

func (*Call) GetParentId

func (x *Call) GetParentId() uint64

func (*Call) ProtoMessage

func (*Call) ProtoMessage()

func (*Call) ProtoReflect

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

func (*Call) Reset

func (x *Call) Reset()

func (*Call) String

func (x *Call) String() string

type Call_Kind added in v0.2.0

type Call_Kind int32
const (
	Call_CALL_KIND_DEFAULT   Call_Kind = 0
	Call_CALL_KIND_ERROR     Call_Kind = 1
	Call_CALL_KIND_CANCEL    Call_Kind = 2
	Call_CALL_KIND_CLOSE     Call_Kind = 3
	Call_CALL_KIND_UNDEFINED Call_Kind = 4
)

func (Call_Kind) Descriptor added in v0.2.0

func (Call_Kind) Descriptor() protoreflect.EnumDescriptor

func (Call_Kind) Enum added in v0.2.0

func (x Call_Kind) Enum() *Call_Kind

func (Call_Kind) EnumDescriptor deprecated added in v0.2.0

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

Deprecated: Use Call_Kind.Descriptor instead.

func (Call_Kind) Number added in v0.2.0

func (x Call_Kind) Number() protoreflect.EnumNumber

func (Call_Kind) String added in v0.2.0

func (x Call_Kind) String() string

func (Call_Kind) Type added in v0.2.0

type Cancel

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

func (*Cancel) Descriptor deprecated

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

Deprecated: Use Cancel.ProtoReflect.Descriptor instead.

func (*Cancel) ProtoMessage

func (*Cancel) ProtoMessage()

func (*Cancel) ProtoReflect

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

func (*Cancel) Reset

func (x *Cancel) Reset()

func (*Cancel) String

func (x *Cancel) String() string

type Close

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

func (*Close) Descriptor deprecated

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

Deprecated: Use Close.ProtoReflect.Descriptor instead.

func (*Close) ProtoMessage

func (*Close) ProtoMessage()

func (*Close) ProtoReflect

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

func (*Close) Reset

func (x *Close) Reset()

func (*Close) String

func (x *Close) String() string

type Error

type Error struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Code    int32  `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) Error added in v0.3.0

func (x *Error) Error() string

func (*Error) ErrorCode added in v0.3.0

func (x *Error) ErrorCode() int32

func (*Error) GetCode added in v0.3.0

func (x *Error) GetCode() int32

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type Undefined

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

func (*Undefined) Descriptor deprecated

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

Deprecated: Use Undefined.ProtoReflect.Descriptor instead.

func (*Undefined) ProtoMessage

func (*Undefined) ProtoMessage()

func (*Undefined) ProtoReflect

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

func (*Undefined) Reset

func (x *Undefined) Reset()

func (*Undefined) String

func (x *Undefined) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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