rpcapi

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Auth1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "rpcapi.Auth1",
	HandlerType: (*Auth1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSiteJwtSecret",
			Handler:    _Auth1_GetSiteJwtSecret_Handler,
		},
		{
			MethodName: "LoginUidpw",
			Handler:    _Auth1_LoginUidpw_Handler,
		},
		{
			MethodName: "RefreshUser",
			Handler:    _Auth1_RefreshUser_Handler,
		},
		{
			MethodName: "LogoutUser",
			Handler:    _Auth1_LogoutUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "rpcapi/auth1.proto",
}

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

View Source
var File_rpcapi_auth1_proto protoreflect.FileDescriptor

Functions

func RegisterAuth1Server

func RegisterAuth1Server(s grpc.ServiceRegistrar, srv Auth1Server)

Types

type Auth1Client

type Auth1Client interface {
	GetSiteJwtSecret(ctx context.Context, in *SiteJwtSecretRequest, opts ...grpc.CallOption) (*SiteJwtSecretReply, error)
	LoginUidpw(ctx context.Context, in *LoginUidpwRequest, opts ...grpc.CallOption) (*LoginResultReply, error)
	RefreshUser(ctx context.Context, in *RtokenRequest, opts ...grpc.CallOption) (*LoginResultReply, error)
	LogoutUser(ctx context.Context, in *RtokenRequest, opts ...grpc.CallOption) (*LogoutReply, error)
}

Auth1Client is the client API for Auth1 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 NewAuth1Client

func NewAuth1Client(cc grpc.ClientConnInterface) Auth1Client

type Auth1Server

type Auth1Server interface {
	GetSiteJwtSecret(context.Context, *SiteJwtSecretRequest) (*SiteJwtSecretReply, error)
	LoginUidpw(context.Context, *LoginUidpwRequest) (*LoginResultReply, error)
	RefreshUser(context.Context, *RtokenRequest) (*LoginResultReply, error)
	LogoutUser(context.Context, *RtokenRequest) (*LogoutReply, error)
	// contains filtered or unexported methods
}

Auth1Server is the server API for Auth1 service. All implementations must embed UnimplementedAuth1Server for forward compatibility

type LoginResultReply added in v0.0.2

type LoginResultReply struct {
	Rtk string `protobuf:"bytes,1,opt,name=rtk,proto3" json:"rtk,omitempty"`
	Atk string `protobuf:"bytes,2,opt,name=atk,proto3" json:"atk,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResultReply) Descriptor deprecated added in v0.0.2

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

Deprecated: Use LoginResultReply.ProtoReflect.Descriptor instead.

func (*LoginResultReply) GetAtk added in v0.0.2

func (x *LoginResultReply) GetAtk() string

func (*LoginResultReply) GetRtk added in v0.0.2

func (x *LoginResultReply) GetRtk() string

func (*LoginResultReply) ProtoMessage added in v0.0.2

func (*LoginResultReply) ProtoMessage()

func (*LoginResultReply) ProtoReflect added in v0.0.2

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

func (*LoginResultReply) Reset added in v0.0.2

func (x *LoginResultReply) Reset()

func (*LoginResultReply) String added in v0.0.2

func (x *LoginResultReply) String() string

type LoginUidpwRequest added in v0.0.2

type LoginUidpwRequest struct {
	SiteKey string `protobuf:"bytes,1,opt,name=siteKey,proto3" json:"siteKey,omitempty"`
	Ver     string `protobuf:"bytes,2,opt,name=ver,proto3" json:"ver,omitempty"`
	Uid     string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
	Pw      []byte `protobuf:"bytes,4,opt,name=pw,proto3" json:"pw,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginUidpwRequest) Descriptor deprecated added in v0.0.2

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

Deprecated: Use LoginUidpwRequest.ProtoReflect.Descriptor instead.

func (*LoginUidpwRequest) GetPw added in v0.0.2

func (x *LoginUidpwRequest) GetPw() []byte

func (*LoginUidpwRequest) GetSiteKey added in v0.0.2

func (x *LoginUidpwRequest) GetSiteKey() string

func (*LoginUidpwRequest) GetUid added in v0.0.2

func (x *LoginUidpwRequest) GetUid() string

func (*LoginUidpwRequest) GetVer added in v0.0.2

func (x *LoginUidpwRequest) GetVer() string

func (*LoginUidpwRequest) ProtoMessage added in v0.0.2

func (*LoginUidpwRequest) ProtoMessage()

func (*LoginUidpwRequest) ProtoReflect added in v0.0.2

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

func (*LoginUidpwRequest) Reset added in v0.0.2

func (x *LoginUidpwRequest) Reset()

func (*LoginUidpwRequest) String added in v0.0.2

func (x *LoginUidpwRequest) String() string

type LogoutReply added in v0.0.2

type LogoutReply struct {
	// contains filtered or unexported fields
}

func (*LogoutReply) Descriptor deprecated added in v0.0.2

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

Deprecated: Use LogoutReply.ProtoReflect.Descriptor instead.

func (*LogoutReply) ProtoMessage added in v0.0.2

func (*LogoutReply) ProtoMessage()

func (*LogoutReply) ProtoReflect added in v0.0.2

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

func (*LogoutReply) Reset added in v0.0.2

func (x *LogoutReply) Reset()

func (*LogoutReply) String added in v0.0.2

func (x *LogoutReply) String() string

type RtokenRequest added in v0.0.2

type RtokenRequest struct {
	SiteKey string `protobuf:"bytes,1,opt,name=siteKey,proto3" json:"siteKey,omitempty"`
	Rtk     string `protobuf:"bytes,2,opt,name=rtk,proto3" json:"rtk,omitempty"`
	// contains filtered or unexported fields
}

func (*RtokenRequest) Descriptor deprecated added in v0.0.2

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

Deprecated: Use RtokenRequest.ProtoReflect.Descriptor instead.

func (*RtokenRequest) GetRtk added in v0.0.2

func (x *RtokenRequest) GetRtk() string

func (*RtokenRequest) GetSiteKey added in v0.0.2

func (x *RtokenRequest) GetSiteKey() string

func (*RtokenRequest) ProtoMessage added in v0.0.2

func (*RtokenRequest) ProtoMessage()

func (*RtokenRequest) ProtoReflect added in v0.0.2

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

func (*RtokenRequest) Reset added in v0.0.2

func (x *RtokenRequest) Reset()

func (*RtokenRequest) String added in v0.0.2

func (x *RtokenRequest) String() string

type SiteJwtSecretReply

type SiteJwtSecretReply struct {
	JwtSecret []byte `protobuf:"bytes,1,opt,name=jwtSecret,proto3" json:"jwtSecret,omitempty"`
	// contains filtered or unexported fields
}

func (*SiteJwtSecretReply) Descriptor deprecated

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

Deprecated: Use SiteJwtSecretReply.ProtoReflect.Descriptor instead.

func (*SiteJwtSecretReply) GetJwtSecret

func (x *SiteJwtSecretReply) GetJwtSecret() []byte

func (*SiteJwtSecretReply) ProtoMessage

func (*SiteJwtSecretReply) ProtoMessage()

func (*SiteJwtSecretReply) ProtoReflect

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

func (*SiteJwtSecretReply) Reset

func (x *SiteJwtSecretReply) Reset()

func (*SiteJwtSecretReply) String

func (x *SiteJwtSecretReply) String() string

type SiteJwtSecretRequest

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

func (*SiteJwtSecretRequest) Descriptor deprecated

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

Deprecated: Use SiteJwtSecretRequest.ProtoReflect.Descriptor instead.

func (*SiteJwtSecretRequest) GetSiteKey

func (x *SiteJwtSecretRequest) GetSiteKey() string

func (*SiteJwtSecretRequest) ProtoMessage

func (*SiteJwtSecretRequest) ProtoMessage()

func (*SiteJwtSecretRequest) ProtoReflect

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

func (*SiteJwtSecretRequest) Reset

func (x *SiteJwtSecretRequest) Reset()

func (*SiteJwtSecretRequest) String

func (x *SiteJwtSecretRequest) String() string

type UnimplementedAuth1Server

type UnimplementedAuth1Server struct {
}

UnimplementedAuth1Server must be embedded to have forward compatible implementations.

func (UnimplementedAuth1Server) GetSiteJwtSecret

func (UnimplementedAuth1Server) LoginUidpw added in v0.0.2

func (UnimplementedAuth1Server) LogoutUser added in v0.0.2

func (UnimplementedAuth1Server) RefreshUser added in v0.0.2

type UnsafeAuth1Server

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

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

Jump to

Keyboard shortcuts

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