flake

package
v0.0.0-...-3237e8e Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_flake_proto protoreflect.FileDescriptor
View Source
var FlakeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flake.FlakeService",
	HandlerType: (*FlakeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "New",
			Handler:    _FlakeService_New_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "flake.proto",
}

FlakeService_ServiceDesc is the grpc.ServiceDesc for FlakeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterFlakeServiceServer

func RegisterFlakeServiceServer(s grpc.ServiceRegistrar, srv FlakeServiceServer)

Types

type FlakeServiceClient

type FlakeServiceClient interface {
	New(ctx context.Context, in *NewRequest, opts ...grpc.CallOption) (*NewResponse, error)
}

FlakeServiceClient is the client API for FlakeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type FlakeServiceServer

type FlakeServiceServer interface {
	New(context.Context, *NewRequest) (*NewResponse, error)
	// contains filtered or unexported methods
}

FlakeServiceServer is the server API for FlakeService service. All implementations must embed UnimplementedFlakeServiceServer for forward compatibility

type NewRequest

type NewRequest struct {
	// contains filtered or unexported fields
}

func (*NewRequest) Descriptor deprecated

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

Deprecated: Use NewRequest.ProtoReflect.Descriptor instead.

func (*NewRequest) ProtoMessage

func (*NewRequest) ProtoMessage()

func (*NewRequest) ProtoReflect

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

func (*NewRequest) Reset

func (x *NewRequest) Reset()

func (*NewRequest) String

func (x *NewRequest) String() string

type NewResponse

type NewResponse struct {
	Code uint64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // for error
	Data uint64 `protobuf:"varint,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NewResponse) Descriptor deprecated

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

Deprecated: Use NewResponse.ProtoReflect.Descriptor instead.

func (*NewResponse) GetCode

func (x *NewResponse) GetCode() uint64

func (*NewResponse) GetData

func (x *NewResponse) GetData() uint64

func (*NewResponse) GetMsg

func (x *NewResponse) GetMsg() string

func (*NewResponse) ProtoMessage

func (*NewResponse) ProtoMessage()

func (*NewResponse) ProtoReflect

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

func (*NewResponse) Reset

func (x *NewResponse) Reset()

func (*NewResponse) String

func (x *NewResponse) String() string

type UnimplementedFlakeServiceServer

type UnimplementedFlakeServiceServer struct {
}

UnimplementedFlakeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFlakeServiceServer) New

type UnsafeFlakeServiceServer

type UnsafeFlakeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFlakeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FlakeServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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