token

package
v0.0.0-...-2af415a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_token_proto protoreflect.FileDescriptor
View Source
var TokenSvc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "TokenSvc",
	HandlerType: (*TokenSvcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _TokenSvc_Register_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "token.proto",
}

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

Functions

func RegisterTokenSvcServer

func RegisterTokenSvcServer(s grpc.ServiceRegistrar, srv TokenSvcServer)

Types

type HostInfo

type HostInfo struct {
	Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Os       string `protobuf:"bytes,3,opt,name=os,proto3" json:"os,omitempty"`
	Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"`
	Cpucount uint64 `protobuf:"varint,5,opt,name=cpucount,proto3" json:"cpucount,omitempty"`
	Memtotal uint64 `protobuf:"varint,6,opt,name=memtotal,proto3" json:"memtotal,omitempty"`
	// contains filtered or unexported fields
}

func (*HostInfo) Descriptor deprecated

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

Deprecated: Use HostInfo.ProtoReflect.Descriptor instead.

func (*HostInfo) GetCpucount

func (x *HostInfo) GetCpucount() uint64

func (*HostInfo) GetHostname

func (x *HostInfo) GetHostname() string

func (*HostInfo) GetMemtotal

func (x *HostInfo) GetMemtotal() uint64

func (*HostInfo) GetOs

func (x *HostInfo) GetOs() string

func (*HostInfo) GetPlatform

func (x *HostInfo) GetPlatform() string

func (*HostInfo) GetUsername

func (x *HostInfo) GetUsername() string

func (*HostInfo) ProtoMessage

func (*HostInfo) ProtoMessage()

func (*HostInfo) ProtoReflect

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

func (*HostInfo) Reset

func (x *HostInfo) Reset()

func (*HostInfo) String

func (x *HostInfo) String() string

type Token

type Token struct {
	T string `protobuf:"bytes,1,opt,name=t,proto3" json:"t,omitempty"`
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetT

func (x *Token) GetT() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type TokenSvcClient

type TokenSvcClient interface {
	Register(ctx context.Context, in *HostInfo, opts ...grpc.CallOption) (*Token, error)
}

TokenSvcClient is the client API for TokenSvc 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.

func NewTokenSvcClient

func NewTokenSvcClient(cc grpc.ClientConnInterface) TokenSvcClient

type TokenSvcServer

type TokenSvcServer interface {
	Register(context.Context, *HostInfo) (*Token, error)
	// contains filtered or unexported methods
}

TokenSvcServer is the server API for TokenSvc service. All implementations must embed UnimplementedTokenSvcServer for forward compatibility

type UnimplementedTokenSvcServer

type UnimplementedTokenSvcServer struct {
}

UnimplementedTokenSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedTokenSvcServer) Register

type UnsafeTokenSvcServer

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

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

Jump to

Keyboard shortcuts

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