kratos: github.com/go-kratos/kratos/pkg/net/rpc/warden/internal/proto/testproto Index | Files

package testproto

import "github.com/go-kratos/kratos/pkg/net/rpc/warden/internal/proto/testproto"

Package testproto is a generated protocol buffer package.

It is generated from these files:

hello.proto

It has these top-level messages:

HelloRequest
HelloReply

Index

Package Files

hello.pb.go

Variables

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

func RegisterGreeterServer Uses

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)

type GreeterClient Uses

type GreeterClient interface {
    // Sends a greeting
    SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
    // A bidirectional streaming RPC call recvice HelloRequest return HelloReply
    StreamHello(ctx context.Context, opts ...grpc.CallOption) (Greeter_StreamHelloClient, error)
}

func NewGreeterClient Uses

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient

type GreeterServer Uses

type GreeterServer interface {
    // Sends a greeting
    SayHello(context.Context, *HelloRequest) (*HelloReply, error)
    // A bidirectional streaming RPC call recvice HelloRequest return HelloReply
    StreamHello(Greeter_StreamHelloServer) error
}

type Greeter_StreamHelloClient Uses

type Greeter_StreamHelloClient interface {
    Send(*HelloRequest) error
    Recv() (*HelloReply, error)
    grpc.ClientStream
}

type Greeter_StreamHelloServer Uses

type Greeter_StreamHelloServer interface {
    Send(*HelloReply) error
    Recv() (*HelloRequest, error)
    grpc.ServerStream
}

type HelloReply Uses

type HelloReply struct {
    Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    Success bool   `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
}

The response message containing the greetings

func (*HelloReply) Descriptor Uses

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

func (*HelloReply) Marshal Uses

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

func (*HelloReply) MarshalTo Uses

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

func (*HelloReply) ProtoMessage Uses

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset Uses

func (m *HelloReply) Reset()

func (*HelloReply) Size Uses

func (m *HelloReply) Size() (n int)

func (*HelloReply) String Uses

func (m *HelloReply) String() string

func (*HelloReply) Unmarshal Uses

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

type HelloRequest Uses

type HelloRequest struct {
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" validate:"required"`
    Age  int32  `protobuf:"varint,2,opt,name=age,proto3" json:"age" validate:"min=0"`
}

The request message containing the user's name.

func (*HelloRequest) Descriptor Uses

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

func (*HelloRequest) Marshal Uses

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

func (*HelloRequest) MarshalTo Uses

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

func (*HelloRequest) ProtoMessage Uses

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset Uses

func (m *HelloRequest) Reset()

func (*HelloRequest) Size Uses

func (m *HelloRequest) Size() (n int)

func (*HelloRequest) String Uses

func (m *HelloRequest) String() string

func (*HelloRequest) Unmarshal Uses

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

Package testproto imports 7 packages (graph). Updated 2020-04-22. Refresh now. Tools for package owners.