Documentation
¶
Overview ¶
Package snowflake is a generated protocol buffer package.
It is generated from these files:
snowflake.proto
It has these top-level messages:
Key Value NullRequest UUID
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSnowflakeHandler ¶
func RegisterSnowflakeHandler(s server.Server, hdlr SnowflakeHandler, opts ...server.HandlerOption)
Types ¶
type Key ¶
type Key struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*Key) Descriptor ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
type NullRequest ¶
type NullRequest struct {
}
func (*NullRequest) Descriptor ¶
func (*NullRequest) Descriptor() ([]byte, []int)
func (*NullRequest) ProtoMessage ¶
func (*NullRequest) ProtoMessage()
func (*NullRequest) Reset ¶
func (m *NullRequest) Reset()
func (*NullRequest) String ¶
func (m *NullRequest) String() string
type SnowflakeClient ¶
type SnowflakeClient interface {
Next(ctx context.Context, in *Key, opts ...client.CallOption) (*Value, error)
GetUUID(ctx context.Context, in *NullRequest, opts ...client.CallOption) (*UUID, error)
}
func NewSnowflakeClient ¶
func NewSnowflakeClient(serviceName string, c client.Client) SnowflakeClient
type SnowflakeHandler ¶
type UUID ¶
type UUID struct {
Uuid uint64 `protobuf:"varint,1,opt,name=uuid" json:"uuid,omitempty"`
}
func (*UUID) Descriptor ¶
func (*UUID) ProtoMessage ¶
func (*UUID) ProtoMessage()
type Value ¶
type Value struct {
Value int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}
func (*Value) Descriptor ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.