Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAccessServiceServer(s grpc.ServiceRegistrar, srv AccessServiceServer)
- type AccessServiceClient
- type AccessServiceServer
- type IsCheckedInRequest
- func (*IsCheckedInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsCheckedInRequest) GetPlatform() string
- func (x *IsCheckedInRequest) GetSessId() string
- func (*IsCheckedInRequest) ProtoMessage()
- func (x *IsCheckedInRequest) ProtoReflect() protoreflect.Message
- func (x *IsCheckedInRequest) Reset()
- func (x *IsCheckedInRequest) String() string
- type IsCheckedInResponse
- func (*IsCheckedInResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsCheckedInResponse) GetMsg() string
- func (x *IsCheckedInResponse) GetSigned() bool
- func (x *IsCheckedInResponse) GetUser() *v1.UserInfo
- func (*IsCheckedInResponse) ProtoMessage()
- func (x *IsCheckedInResponse) ProtoReflect() protoreflect.Message
- func (x *IsCheckedInResponse) Reset()
- func (x *IsCheckedInResponse) String() string
- type UnimplementedAccessServiceServer
- type UnsafeAccessServiceServer
Constants ¶
const (
AccessService_IsCheckedIn_FullMethodName = "/passport.sdk.access.v1.AccessService/IsCheckedIn"
)
Variables ¶
var AccessService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "passport.sdk.access.v1.AccessService", HandlerType: (*AccessServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsCheckedIn", Handler: _AccessService_IsCheckedIn_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "access/v1/access.proto", }
AccessService_ServiceDesc is the grpc.ServiceDesc for AccessService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_access_v1_access_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccessServiceServer ¶
func RegisterAccessServiceServer(s grpc.ServiceRegistrar, srv AccessServiceServer)
Types ¶
type AccessServiceClient ¶
type AccessServiceClient interface { // 判断是否登录 IsCheckedIn(ctx context.Context, in *IsCheckedInRequest, opts ...grpc.CallOption) (*IsCheckedInResponse, error) }
AccessServiceClient is the client API for AccessService 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 NewAccessServiceClient ¶
func NewAccessServiceClient(cc grpc.ClientConnInterface) AccessServiceClient
type AccessServiceServer ¶
type AccessServiceServer interface { // 判断是否登录 IsCheckedIn(context.Context, *IsCheckedInRequest) (*IsCheckedInResponse, error) // contains filtered or unexported methods }
AccessServiceServer is the server API for AccessService service. All implementations must embed UnimplementedAccessServiceServer for forward compatibility.
type IsCheckedInRequest ¶
type IsCheckedInRequest struct { SessId string `protobuf:"bytes,1,opt,name=sess_id,json=sessId,proto3" json:"sess_id,omitempty"` Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"` // contains filtered or unexported fields }
func (*IsCheckedInRequest) Descriptor
deprecated
func (*IsCheckedInRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsCheckedInRequest.ProtoReflect.Descriptor instead.
func (*IsCheckedInRequest) GetPlatform ¶
func (x *IsCheckedInRequest) GetPlatform() string
func (*IsCheckedInRequest) GetSessId ¶
func (x *IsCheckedInRequest) GetSessId() string
func (*IsCheckedInRequest) ProtoMessage ¶
func (*IsCheckedInRequest) ProtoMessage()
func (*IsCheckedInRequest) ProtoReflect ¶
func (x *IsCheckedInRequest) ProtoReflect() protoreflect.Message
func (*IsCheckedInRequest) Reset ¶
func (x *IsCheckedInRequest) Reset()
func (*IsCheckedInRequest) String ¶
func (x *IsCheckedInRequest) String() string
type IsCheckedInResponse ¶
type IsCheckedInResponse struct { Signed bool `protobuf:"varint,1,opt,name=signed,proto3" json:"signed,omitempty"` User *v1.UserInfo `protobuf:"bytes,2,opt,name=user,proto3,oneof" json:"user,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*IsCheckedInResponse) Descriptor
deprecated
func (*IsCheckedInResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsCheckedInResponse.ProtoReflect.Descriptor instead.
func (*IsCheckedInResponse) GetMsg ¶
func (x *IsCheckedInResponse) GetMsg() string
func (*IsCheckedInResponse) GetSigned ¶
func (x *IsCheckedInResponse) GetSigned() bool
func (*IsCheckedInResponse) GetUser ¶
func (x *IsCheckedInResponse) GetUser() *v1.UserInfo
func (*IsCheckedInResponse) ProtoMessage ¶
func (*IsCheckedInResponse) ProtoMessage()
func (*IsCheckedInResponse) ProtoReflect ¶
func (x *IsCheckedInResponse) ProtoReflect() protoreflect.Message
func (*IsCheckedInResponse) Reset ¶
func (x *IsCheckedInResponse) Reset()
func (*IsCheckedInResponse) String ¶
func (x *IsCheckedInResponse) String() string
type UnimplementedAccessServiceServer ¶
type UnimplementedAccessServiceServer struct{}
UnimplementedAccessServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAccessServiceServer) IsCheckedIn ¶
func (UnimplementedAccessServiceServer) IsCheckedIn(context.Context, *IsCheckedInRequest) (*IsCheckedInResponse, error)
type UnsafeAccessServiceServer ¶
type UnsafeAccessServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccessServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccessServiceServer will result in compilation errors.