v1

package
v0.0.0-...-a5cb702 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_steven_proto protoreflect.FileDescriptor

Functions

func RegisterStevenServer

func RegisterStevenServer(s *grpc.Server, srv StevenServer)

Types

type StevenClient

type StevenClient interface {
	SayHello(ctx context.Context, in *StevenRequest, opts ...grpc.CallOption) (*StevenResp, error)
}

StevenClient is the client API for Steven service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStevenClient

func NewStevenClient(cc grpc.ClientConnInterface) StevenClient

type StevenRequest

type StevenRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Sex  string `protobuf:"bytes,2,opt,name=sex,proto3" json:"sex,omitempty"`
	Age  int32  `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"`
	// contains filtered or unexported fields
}

func (*StevenRequest) Descriptor deprecated

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

Deprecated: Use StevenRequest.ProtoReflect.Descriptor instead.

func (*StevenRequest) GetAge

func (x *StevenRequest) GetAge() int32

func (*StevenRequest) GetName

func (x *StevenRequest) GetName() string

func (*StevenRequest) GetSex

func (x *StevenRequest) GetSex() string

func (*StevenRequest) ProtoMessage

func (*StevenRequest) ProtoMessage()

func (*StevenRequest) ProtoReflect

func (x *StevenRequest) ProtoReflect() protoreflect.Message

func (*StevenRequest) Reset

func (x *StevenRequest) Reset()

func (*StevenRequest) String

func (x *StevenRequest) String() string

type StevenResp

type StevenResp struct {
	Issuccess int32 `protobuf:"varint,1,opt,name=issuccess,proto3" json:"issuccess,omitempty"`
	// contains filtered or unexported fields
}

func (*StevenResp) Descriptor deprecated

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

Deprecated: Use StevenResp.ProtoReflect.Descriptor instead.

func (*StevenResp) GetIssuccess

func (x *StevenResp) GetIssuccess() int32

func (*StevenResp) ProtoMessage

func (*StevenResp) ProtoMessage()

func (*StevenResp) ProtoReflect

func (x *StevenResp) ProtoReflect() protoreflect.Message

func (*StevenResp) Reset

func (x *StevenResp) Reset()

func (*StevenResp) String

func (x *StevenResp) String() string

type StevenServer

type StevenServer interface {
	SayHello(context.Context, *StevenRequest) (*StevenResp, error)
}

StevenServer is the server API for Steven service.

type UnimplementedStevenServer

type UnimplementedStevenServer struct {
}

UnimplementedStevenServer can be embedded to have forward compatible implementations.

func (*UnimplementedStevenServer) SayHello

Jump to

Keyboard shortcuts

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