protocol

package
v0.0.0-...-ef18e65 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package protocol is a generated protocol buffer package.

It is generated from these files:

hello.proto

It has these top-level messages:

HelloReq
HelloResp

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthHello = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHello   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterHelloServiceServer

func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)

func RegisterService

func RegisterService(srv *grpc.Server, s Service)

Types

type HelloReq

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

func (*HelloReq) Descriptor

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

func (*HelloReq) Marshal

func (m *HelloReq) Marshal() (dAtA []byte, err error)

func (*HelloReq) MarshalTo

func (m *HelloReq) MarshalTo(dAtA []byte) (int, error)

func (*HelloReq) ProtoMessage

func (*HelloReq) ProtoMessage()

func (*HelloReq) ProtoSize

func (m *HelloReq) ProtoSize() (n int)

func (*HelloReq) Reset

func (m *HelloReq) Reset()

func (*HelloReq) String

func (m *HelloReq) String() string

func (*HelloReq) Unmarshal

func (m *HelloReq) Unmarshal(dAtA []byte) error

type HelloResp

type HelloResp struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
}

func (*HelloResp) Descriptor

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

func (*HelloResp) Marshal

func (m *HelloResp) Marshal() (dAtA []byte, err error)

func (*HelloResp) MarshalTo

func (m *HelloResp) MarshalTo(dAtA []byte) (int, error)

func (*HelloResp) ProtoMessage

func (*HelloResp) ProtoMessage()

func (*HelloResp) ProtoSize

func (m *HelloResp) ProtoSize() (n int)

func (*HelloResp) Reset

func (m *HelloResp) Reset()

func (*HelloResp) String

func (m *HelloResp) String() string

func (*HelloResp) Unmarshal

func (m *HelloResp) Unmarshal(dAtA []byte) error

type HelloServiceClient

type HelloServiceClient interface {
	Hello(ctx context.Context, in *HelloReq, opts ...grpc.CallOption) (*HelloResp, error)
}

func NewHelloServiceClient

func NewHelloServiceClient(cc *grpc.ClientConn) HelloServiceClient

type HelloServiceServer

type HelloServiceServer interface {
	Hello(context.Context, *HelloReq) (*HelloResp, error)
}

type Service

type Service interface {
	Hello(ctx context.Context, name string) (string, error)
}

func AsService

func AsService(cc *grpc.ClientConn) Service

Jump to

Keyboard shortcuts

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