simple_proto

package
v2.0.0-...-1c13370 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package simple_proto is a generated protocol buffer package.

It is generated from these files:

simple.proto

It has these top-level messages:

EchoRequest
EchoResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSimpleServiceOrionServer

func RegisterSimpleServiceOrionServer(srv orion.ServiceFactory, orionServer orion.Server)

RegisterSimpleServiceOrionServer registers SimpleService to Orion server

func RegisterSimpleServiceServer

func RegisterSimpleServiceServer(s *grpc.Server, srv SimpleServiceServer)

Types

type EchoRequest

type EchoRequest struct {
	Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}

func (*EchoRequest) Descriptor

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

func (*EchoRequest) GetMsg

func (m *EchoRequest) GetMsg() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) Reset

func (m *EchoRequest) Reset()

func (*EchoRequest) String

func (m *EchoRequest) String() string

type EchoResponse

type EchoResponse struct {
	Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}

func (*EchoResponse) Descriptor

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

func (*EchoResponse) GetMsg

func (m *EchoResponse) GetMsg() string

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) Reset

func (m *EchoResponse) Reset()

func (*EchoResponse) String

func (m *EchoResponse) String() string

type SimpleServiceClient

type SimpleServiceClient interface {
	Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
}

func NewSimpleServiceClient

func NewSimpleServiceClient(cc *grpc.ClientConn) SimpleServiceClient

type SimpleServiceServer

type SimpleServiceServer interface {
	Echo(context.Context, *EchoRequest) (*EchoResponse, error)
}

Jump to

Keyboard shortcuts

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