pb

package
v0.0.0-...-77ac563 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterLeafServer

func RegisterLeafServer(s *grpc.Server, srv LeafServer)

Types

type LeafClient

type LeafClient interface {
	Query(ctx context.Context, in *LeafRequest, opts ...grpc.CallOption) (*LeafResponse, error)
}

LeafClient is the client API for Leaf service.

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

func NewLeafClient

func NewLeafClient(cc grpc.ClientConnInterface) LeafClient

type LeafRequest

type LeafRequest struct {
	Domain int64 `protobuf:"varint,1,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*LeafRequest) Descriptor deprecated

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

Deprecated: Use LeafRequest.ProtoReflect.Descriptor instead.

func (*LeafRequest) GetDomain

func (x *LeafRequest) GetDomain() int64

func (*LeafRequest) ProtoMessage

func (*LeafRequest) ProtoMessage()

func (*LeafRequest) ProtoReflect

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

func (*LeafRequest) Reset

func (x *LeafRequest) Reset()

func (*LeafRequest) String

func (x *LeafRequest) String() string

type LeafResponse

type LeafResponse struct {
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*LeafResponse) Descriptor deprecated

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

Deprecated: Use LeafResponse.ProtoReflect.Descriptor instead.

func (*LeafResponse) GetNumber

func (x *LeafResponse) GetNumber() int64

func (*LeafResponse) ProtoMessage

func (*LeafResponse) ProtoMessage()

func (*LeafResponse) ProtoReflect

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

func (*LeafResponse) Reset

func (x *LeafResponse) Reset()

func (*LeafResponse) String

func (x *LeafResponse) String() string

type LeafServer

type LeafServer interface {
	Query(context.Context, *LeafRequest) (*LeafResponse, error)
}

LeafServer is the server API for Leaf service.

type UnimplementedLeafServer

type UnimplementedLeafServer struct {
}

UnimplementedLeafServer can be embedded to have forward compatible implementations.

func (*UnimplementedLeafServer) Query

Jump to

Keyboard shortcuts

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