proto

package
Version: v0.0.0-...-d144a35 Latest Latest
Warning

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

Go to latest
Published: May 6, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

hello.proto

It has these top-level messages:

Packet
Event
Hello

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGameServiceServer

func RegisterGameServiceServer(s *grpc.Server, srv GameServiceServer)

func RegisterGreeterServer

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)

Types

type Event

type Event struct {
	Type int32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"`
}

func (*Event) Descriptor

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

func (*Event) GetType

func (m *Event) GetType() int32

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

type GameServiceClient

type GameServiceClient interface {
	Tunnel(ctx context.Context, opts ...grpc.CallOption) (GameService_TunnelClient, error)
}

func NewGameServiceClient

func NewGameServiceClient(cc *grpc.ClientConn) GameServiceClient

type GameServiceServer

type GameServiceServer interface {
	Tunnel(GameService_TunnelServer) error
}

type GameService_TunnelClient

type GameService_TunnelClient interface {
	Send(*Packet) error
	Recv() (*Packet, error)
	grpc.ClientStream
}

type GameService_TunnelServer

type GameService_TunnelServer interface {
	Send(*Packet) error
	Recv() (*Packet, error)
	grpc.ServerStream
}

type GreeterClient

type GreeterClient interface {
	SayHello(ctx context.Context, in *Hello_Req, opts ...grpc.CallOption) (*Hello_Res, error)
}

func NewGreeterClient

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient

type GreeterServer

type GreeterServer interface {
	SayHello(context.Context, *Hello_Req) (*Hello_Res, error)
}

type Hello

type Hello struct {
}

func (*Hello) Descriptor

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

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) Reset

func (m *Hello) Reset()

func (*Hello) String

func (m *Hello) String() string

type Hello_Req

type Hello_Req struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*Hello_Req) Descriptor

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

func (*Hello_Req) GetName

func (m *Hello_Req) GetName() string

func (*Hello_Req) ProtoMessage

func (*Hello_Req) ProtoMessage()

func (*Hello_Req) Reset

func (m *Hello_Req) Reset()

func (*Hello_Req) String

func (m *Hello_Req) String() string

type Hello_Res

type Hello_Res struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*Hello_Res) Descriptor

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

func (*Hello_Res) GetMessage

func (m *Hello_Res) GetMessage() string

func (*Hello_Res) ProtoMessage

func (*Hello_Res) ProtoMessage()

func (*Hello_Res) Reset

func (m *Hello_Res) Reset()

func (*Hello_Res) String

func (m *Hello_Res) String() string

type Packet

type Packet struct {
	Type    string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}

func (*Packet) Descriptor

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

func (*Packet) GetPayload

func (m *Packet) GetPayload() []byte

func (*Packet) GetType

func (m *Packet) GetType() string

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) Reset

func (m *Packet) Reset()

func (*Packet) String

func (m *Packet) String() string

Source Files

Jump to

Keyboard shortcuts

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