stringproto

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 stringproto is a generated protocol buffer package.

It is generated from these files:

stringproto.proto

It has these top-level messages:

UpperRequest
UpperResponse
CountRequest
CountResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStringServiceDefaultDecoder

func RegisterStringServiceDefaultDecoder(svr orion.Server, decoder orion.Decoder)

DefaultDecoder

func RegisterStringServiceDefaultEncoder

func RegisterStringServiceDefaultEncoder(svr orion.Server, encoder orion.Encoder)

DefaultEncoder

func RegisterStringServiceOrionServer

func RegisterStringServiceOrionServer(srv interface{}, orionServer orion.Server) error

RegisterStringServiceOrionServer registers StringService to Orion server Services need to pass either ServiceFactory or ServiceFactoryV2 implementation

func RegisterStringServiceServer

func RegisterStringServiceServer(s *grpc.Server, srv StringServiceServer)

Types

type CountRequest

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

func (*CountRequest) Descriptor

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

func (*CountRequest) GetMsg

func (m *CountRequest) GetMsg() string

func (*CountRequest) ProtoMessage

func (*CountRequest) ProtoMessage()

func (*CountRequest) Reset

func (m *CountRequest) Reset()

func (*CountRequest) String

func (m *CountRequest) String() string

type CountResponse

type CountResponse struct {
	Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}

func (*CountResponse) Descriptor

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

func (*CountResponse) GetCount

func (m *CountResponse) GetCount() int64

func (*CountResponse) ProtoMessage

func (*CountResponse) ProtoMessage()

func (*CountResponse) Reset

func (m *CountResponse) Reset()

func (*CountResponse) String

func (m *CountResponse) String() string

type StringServiceClient

type StringServiceClient interface {
	Upper(ctx context.Context, in *UpperRequest, opts ...grpc.CallOption) (*UpperResponse, error)
	Count(ctx context.Context, in *CountRequest, opts ...grpc.CallOption) (*CountResponse, error)
}

func NewStringServiceClient

func NewStringServiceClient(cc *grpc.ClientConn) StringServiceClient

type StringServiceServer

type StringServiceServer interface {
	Upper(context.Context, *UpperRequest) (*UpperResponse, error)
	Count(context.Context, *CountRequest) (*CountResponse, error)
}

type UpperRequest

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

func (*UpperRequest) Descriptor

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

func (*UpperRequest) GetMsg

func (m *UpperRequest) GetMsg() string

func (*UpperRequest) ProtoMessage

func (*UpperRequest) ProtoMessage()

func (*UpperRequest) Reset

func (m *UpperRequest) Reset()

func (*UpperRequest) String

func (m *UpperRequest) String() string

type UpperResponse

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

func (*UpperResponse) Descriptor

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

func (*UpperResponse) GetMsg

func (m *UpperResponse) GetMsg() string

func (*UpperResponse) ProtoMessage

func (*UpperResponse) ProtoMessage()

func (*UpperResponse) Reset

func (m *UpperResponse) Reset()

func (*UpperResponse) String

func (m *UpperResponse) String() string

Jump to

Keyboard shortcuts

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