snowflakev1

package
v0.0.0-...-139fbb7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_snowflake_v1_snowflake_proto protoreflect.FileDescriptor
View Source
var SnowflakeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "snowflake.v1.SnowflakeService",
	HandlerType: (*SnowflakeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateID",
			Handler:    _SnowflakeService_GenerateID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "snowflake/v1/snowflake.proto",
}

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

Functions

func RegisterSnowflakeServiceServer

func RegisterSnowflakeServiceServer(s grpc.ServiceRegistrar, srv SnowflakeServiceServer)

Types

type GenerateIDRequest

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

func (*GenerateIDRequest) Descriptor deprecated

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

Deprecated: Use GenerateIDRequest.ProtoReflect.Descriptor instead.

func (*GenerateIDRequest) ProtoMessage

func (*GenerateIDRequest) ProtoMessage()

func (*GenerateIDRequest) ProtoReflect

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

func (*GenerateIDRequest) Reset

func (x *GenerateIDRequest) Reset()

func (*GenerateIDRequest) String

func (x *GenerateIDRequest) String() string

type GenerateIDResponse

type GenerateIDResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateIDResponse) Descriptor deprecated

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

Deprecated: Use GenerateIDResponse.ProtoReflect.Descriptor instead.

func (*GenerateIDResponse) GetId

func (x *GenerateIDResponse) GetId() uint64

func (*GenerateIDResponse) ProtoMessage

func (*GenerateIDResponse) ProtoMessage()

func (*GenerateIDResponse) ProtoReflect

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

func (*GenerateIDResponse) Reset

func (x *GenerateIDResponse) Reset()

func (*GenerateIDResponse) String

func (x *GenerateIDResponse) String() string

type SnowflakeServiceClient

type SnowflakeServiceClient interface {
	GenerateID(ctx context.Context, in *GenerateIDRequest, opts ...grpc.CallOption) (*GenerateIDResponse, error)
}

SnowflakeServiceClient is the client API for SnowflakeService 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 SnowflakeServiceServer

type SnowflakeServiceServer interface {
	GenerateID(context.Context, *GenerateIDRequest) (*GenerateIDResponse, error)
	// contains filtered or unexported methods
}

SnowflakeServiceServer is the server API for SnowflakeService service. All implementations must embed UnimplementedSnowflakeServiceServer for forward compatibility

type UnimplementedSnowflakeServiceServer

type UnimplementedSnowflakeServiceServer struct {
}

UnimplementedSnowflakeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSnowflakeServiceServer) GenerateID

type UnsafeSnowflakeServiceServer

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

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

Jump to

Keyboard shortcuts

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