Documentation ¶
Index ¶
- Variables
- func RegisterTokenSvcServer(s grpc.ServiceRegistrar, srv TokenSvcServer)
- type HostInfo
- func (*HostInfo) Descriptor() ([]byte, []int)deprecated
- func (x *HostInfo) GetCpucount() uint64
- func (x *HostInfo) GetHostname() string
- func (x *HostInfo) GetMemtotal() uint64
- func (x *HostInfo) GetOs() string
- func (x *HostInfo) GetPlatform() string
- func (x *HostInfo) GetUsername() string
- func (*HostInfo) ProtoMessage()
- func (x *HostInfo) ProtoReflect() protoreflect.Message
- func (x *HostInfo) Reset()
- func (x *HostInfo) String() string
- type Token
- type TokenSvcClient
- type TokenSvcServer
- type UnimplementedTokenSvcServer
- type UnsafeTokenSvcServer
Constants ¶
This section is empty.
Variables ¶
var File_token_proto protoreflect.FileDescriptor
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) GetCpucount ¶
func (*HostInfo) GetHostname ¶
func (*HostInfo) GetMemtotal ¶
func (*HostInfo) GetPlatform ¶
func (*HostInfo) GetUsername ¶
func (*HostInfo) ProtoMessage ¶
func (*HostInfo) ProtoMessage()
func (*HostInfo) ProtoReflect ¶
func (x *HostInfo) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
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.
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.