hello

package
v0.0.0-...-e78ffe4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHelloServer

func RegisterHelloServer(s *grpc.Server, srv HelloServer)

Types

type HelloClient

type HelloClient interface {
	SayHello(ctx context.Context, in *MyTarget, opts ...grpc.CallOption) (*MyGreeting, error)
}

func NewSimpleHelloClient

func NewSimpleHelloClient(connection *grpc.ClientConn) HelloClient

type HelloServer

type HelloServer interface {
	SayHello(context.Context, *MyTarget) (*MyGreeting, error)
}

type MyGreeting

type MyGreeting struct {
	Greeting             string   `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MyGreeting) Descriptor

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

func (*MyGreeting) GetGreeting

func (m *MyGreeting) GetGreeting() string

func (*MyGreeting) ProtoMessage

func (*MyGreeting) ProtoMessage()

func (*MyGreeting) Reset

func (m *MyGreeting) Reset()

func (*MyGreeting) String

func (m *MyGreeting) String() string

func (*MyGreeting) XXX_DiscardUnknown

func (m *MyGreeting) XXX_DiscardUnknown()

func (*MyGreeting) XXX_Marshal

func (m *MyGreeting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MyGreeting) XXX_Merge

func (m *MyGreeting) XXX_Merge(src proto.Message)

func (*MyGreeting) XXX_Size

func (m *MyGreeting) XXX_Size() int

func (*MyGreeting) XXX_Unmarshal

func (m *MyGreeting) XXX_Unmarshal(b []byte) error

type MyTarget

type MyTarget struct {
	Target               string   `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MyTarget) Descriptor

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

func (*MyTarget) GetTarget

func (m *MyTarget) GetTarget() string

func (*MyTarget) ProtoMessage

func (*MyTarget) ProtoMessage()

func (*MyTarget) Reset

func (m *MyTarget) Reset()

func (*MyTarget) String

func (m *MyTarget) String() string

func (*MyTarget) XXX_DiscardUnknown

func (m *MyTarget) XXX_DiscardUnknown()

func (*MyTarget) XXX_Marshal

func (m *MyTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MyTarget) XXX_Merge

func (m *MyTarget) XXX_Merge(src proto.Message)

func (*MyTarget) XXX_Size

func (m *MyTarget) XXX_Size() int

func (*MyTarget) XXX_Unmarshal

func (m *MyTarget) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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