guuid

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_guuid_proto protoreflect.FileDescriptor

Functions

func NewGuuidEndpoints

func NewGuuidEndpoints() []*api.Endpoint

func RegisterGuuidHandler

func RegisterGuuidHandler(s server.Server, hdlr GuuidHandler, opts ...server.HandlerOption) error

Types

type GuuidHandler

type GuuidHandler interface {
	// 生成UUID
	Gen(context.Context, *emptypb.Empty, *Response) error
}

type GuuidService

type GuuidService interface {
	// 生成UUID
	Gen(ctx context.Context, in *emptypb.Empty, opts ...client.CallOption) (*Response, error)
}

func NewGuuidService

func NewGuuidService(name string, c client.Client) GuuidService

type Response

type Response struct {
	Guuid int64 `protobuf:"varint,1,opt,name=guuid,proto3" json:"guuid"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetGuuid

func (x *Response) GetGuuid() int64

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Jump to

Keyboard shortcuts

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