hello

package
v0.0.0-...-c7675eb Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-2-Clause-Patent Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Module_name = map[int32]string{
		0: "HELLO",
	}
	Module_value = map[string]int32{
		"HELLO": 0,
	}
)

Enum value maps for Module.

View Source
var (
	Function_name = map[int32]string{
		0: "GREETING",
	}
	Function_value = map[string]int32{
		"GREETING": 0,
	}
)

Enum value maps for Function.

View Source
var File_drpc_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Function

type Function int32
const (
	Function_GREETING Function = 0
)

func (Function) Descriptor

func (Function) Descriptor() protoreflect.EnumDescriptor

func (Function) Enum

func (x Function) Enum() *Function

func (Function) EnumDescriptor deprecated

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

Deprecated: Use Function.Descriptor instead.

func (Function) Number

func (x Function) Number() protoreflect.EnumNumber

func (Function) String

func (x Function) String() string

func (Function) Type

type Hello

type Hello struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Hello) Descriptor deprecated

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

Deprecated: Use Hello.ProtoReflect.Descriptor instead.

func (*Hello) GetName

func (x *Hello) GetName() string

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) ProtoReflect

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

func (*Hello) Reset

func (x *Hello) Reset()

func (*Hello) String

func (x *Hello) String() string

type HelloModule

type HelloModule struct{}

HelloModule is the RPC Handler for the Hello Module

func (HelloModule) HandleCall

func (m HelloModule) HandleCall(_ context.Context, session *drpc.Session, method drpc.Method, body []byte) ([]byte, error)

HandleCall is the handler for calls to the Hello module

func (HelloModule) ID

func (m HelloModule) ID() drpc.ModuleID

ID will return Module_HELLO as a ModuleID type

type HelloResponse

type HelloResponse struct {
	Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloResponse) Descriptor deprecated

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

Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.

func (*HelloResponse) GetGreeting

func (x *HelloResponse) GetGreeting() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) ProtoReflect

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

func (*HelloResponse) Reset

func (x *HelloResponse) Reset()

func (*HelloResponse) String

func (x *HelloResponse) String() string

type Module

type Module int32
const (
	Module_HELLO Module = 0
)

func (Module) Descriptor

func (Module) Descriptor() protoreflect.EnumDescriptor

func (Module) Enum

func (x Module) Enum() *Module

func (Module) EnumDescriptor deprecated

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

Deprecated: Use Module.Descriptor instead.

func (Module) Number

func (x Module) Number() protoreflect.EnumNumber

func (Module) String

func (x Module) String() string

func (Module) Type

func (Module) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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