example

package
v0.0.0-...-74fa95f Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Overview

Package example is a generated protocol buffer package.

It is generated from these files:

example.proto

It has these top-level messages:

Message

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExampleServer

func RegisterExampleServer(s *grpc.Server, srv ExampleServer)

Types

type ExampleClient

type ExampleClient interface {
	Echo(ctx context.Context, opts ...grpc.CallOption) (Example_EchoClient, error)
}

func NewExampleClient

func NewExampleClient(cc *grpc.ClientConn) ExampleClient

type ExampleServer

type ExampleServer interface {
	Echo(Example_EchoServer) error
}

type Example_EchoClient

type Example_EchoClient interface {
	Send(*Message) error
	Recv() (*Message, error)
	grpc.ClientStream
}

type Example_EchoServer

type Example_EchoServer interface {
	Send(*Message) error
	Recv() (*Message, error)
	grpc.ServerStream
}

type Message

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

func (*Message) Descriptor

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

func (*Message) GetData

func (m *Message) GetData() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

Jump to

Keyboard shortcuts

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