Documentation ¶
Index ¶
- Variables
- func RegisterWathiqServer(s grpc.ServiceRegistrar, srv WathiqServer)
- type TokenRequest
- type TokenResponse
- func (*TokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokenResponse) GetError() int32
- func (x *TokenResponse) GetToken() string
- func (*TokenResponse) ProtoMessage()
- func (x *TokenResponse) ProtoReflect() protoreflect.Message
- func (x *TokenResponse) Reset()
- func (x *TokenResponse) String() string
- type UnimplementedWathiqServer
- type UnsafeWathiqServer
- type ValidateRequest
- type ValidateResponse
- func (*ValidateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateResponse) GetId() string
- func (x *ValidateResponse) GetValid() bool
- func (*ValidateResponse) ProtoMessage()
- func (x *ValidateResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateResponse) Reset()
- func (x *ValidateResponse) String() string
- type WathiqClient
- type WathiqServer
Constants ¶
This section is empty.
Variables ¶
var File_protobufs_wathiq_wathiqh_proto protoreflect.FileDescriptor
var Wathiq_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wathiq.Wathiq", HandlerType: (*WathiqServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Validate", Handler: _Wathiq_Validate_Handler, }, { MethodName: "GetToken", Handler: _Wathiq_GetToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protobufs/wathiq/wathiqh.proto", }
Wathiq_ServiceDesc is the grpc.ServiceDesc for Wathiq service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWathiqServer ¶
func RegisterWathiqServer(s grpc.ServiceRegistrar, srv WathiqServer)
Types ¶
type TokenRequest ¶
type TokenRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*TokenRequest) Descriptor
deprecated
func (*TokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use TokenRequest.ProtoReflect.Descriptor instead.
func (*TokenRequest) GetUsername ¶
func (x *TokenRequest) GetUsername() string
func (*TokenRequest) ProtoMessage ¶
func (*TokenRequest) ProtoMessage()
func (*TokenRequest) ProtoReflect ¶
func (x *TokenRequest) ProtoReflect() protoreflect.Message
func (*TokenRequest) Reset ¶
func (x *TokenRequest) Reset()
func (*TokenRequest) String ¶
func (x *TokenRequest) String() string
type TokenResponse ¶
type TokenResponse struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"` Error int32 `protobuf:"varint,2,opt,name=Error,proto3" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*TokenResponse) Descriptor
deprecated
func (*TokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.
func (*TokenResponse) GetError ¶
func (x *TokenResponse) GetError() int32
func (*TokenResponse) GetToken ¶
func (x *TokenResponse) GetToken() string
func (*TokenResponse) ProtoMessage ¶
func (*TokenResponse) ProtoMessage()
func (*TokenResponse) ProtoReflect ¶
func (x *TokenResponse) ProtoReflect() protoreflect.Message
func (*TokenResponse) Reset ¶
func (x *TokenResponse) Reset()
func (*TokenResponse) String ¶
func (x *TokenResponse) String() string
type UnimplementedWathiqServer ¶
type UnimplementedWathiqServer struct { }
UnimplementedWathiqServer must be embedded to have forward compatible implementations.
func (UnimplementedWathiqServer) GetToken ¶
func (UnimplementedWathiqServer) GetToken(context.Context, *TokenRequest) (*TokenResponse, error)
func (UnimplementedWathiqServer) Validate ¶
func (UnimplementedWathiqServer) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error)
type UnsafeWathiqServer ¶
type UnsafeWathiqServer interface {
// contains filtered or unexported methods
}
UnsafeWathiqServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WathiqServer will result in compilation errors.
type ValidateRequest ¶
type ValidateRequest struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"` // contains filtered or unexported fields }
func (*ValidateRequest) Descriptor
deprecated
func (*ValidateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead.
func (*ValidateRequest) GetToken ¶
func (x *ValidateRequest) GetToken() string
func (*ValidateRequest) ProtoMessage ¶
func (*ValidateRequest) ProtoMessage()
func (*ValidateRequest) ProtoReflect ¶
func (x *ValidateRequest) ProtoReflect() protoreflect.Message
func (*ValidateRequest) Reset ¶
func (x *ValidateRequest) Reset()
func (*ValidateRequest) String ¶
func (x *ValidateRequest) String() string
type ValidateResponse ¶
type ValidateResponse struct { Valid bool `protobuf:"varint,1,opt,name=Valid,proto3" json:"Valid,omitempty"` Id string `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*ValidateResponse) Descriptor
deprecated
func (*ValidateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead.
func (*ValidateResponse) GetId ¶
func (x *ValidateResponse) GetId() string
func (*ValidateResponse) GetValid ¶
func (x *ValidateResponse) GetValid() bool
func (*ValidateResponse) ProtoMessage ¶
func (*ValidateResponse) ProtoMessage()
func (*ValidateResponse) ProtoReflect ¶
func (x *ValidateResponse) ProtoReflect() protoreflect.Message
func (*ValidateResponse) Reset ¶
func (x *ValidateResponse) Reset()
func (*ValidateResponse) String ¶
func (x *ValidateResponse) String() string
type WathiqClient ¶
type WathiqClient interface { Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) GetToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) }
WathiqClient is the client API for Wathiq 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 NewWathiqClient ¶
func NewWathiqClient(cc grpc.ClientConnInterface) WathiqClient
type WathiqServer ¶
type WathiqServer interface { Validate(context.Context, *ValidateRequest) (*ValidateResponse, error) GetToken(context.Context, *TokenRequest) (*TokenResponse, error) // contains filtered or unexported methods }
WathiqServer is the server API for Wathiq service. All implementations must embed UnimplementedWathiqServer for forward compatibility