protobufdefine

package
v0.0.0-...-de7a418 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const HelloProtoBufServiceName = "path/to/protobuf/pkg.HelloService"

Variables

View Source
var File_hello_proto protoreflect.FileDescriptor

Functions

func RegisterHelloService

func RegisterHelloService(svc HelloServiceInterface) error

Types

type HelloServer

type HelloServer struct {
}

func (*HelloServer) Hello

func (p *HelloServer) Hello(request *String, reply *String) (err error)

type HelloServiceInterface

type HelloServiceInterface = interface {
	Hello(request *String, reply *String) error
}

type String

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

func (*String) Descriptor deprecated

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

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetValue

func (x *String) GetValue() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect

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

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

Jump to

Keyboard shortcuts

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