auth

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterAuthsServer

func RegisterAuthsServer(s *grpc.Server, srv AuthsServer)

Types

type AuthAcceptRequest

type AuthAcceptRequest struct {
	AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"`
	RequestUrl  string `protobuf:"bytes,2,opt,name=RequestUrl,proto3" json:"RequestUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthAcceptRequest) Descriptor deprecated

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

Deprecated: Use AuthAcceptRequest.ProtoReflect.Descriptor instead.

func (*AuthAcceptRequest) GetAccessToken

func (x *AuthAcceptRequest) GetAccessToken() string

func (*AuthAcceptRequest) GetRequestUrl

func (x *AuthAcceptRequest) GetRequestUrl() string

func (*AuthAcceptRequest) ProtoMessage

func (*AuthAcceptRequest) ProtoMessage()

func (*AuthAcceptRequest) ProtoReflect

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

func (*AuthAcceptRequest) Reset

func (x *AuthAcceptRequest) Reset()

func (*AuthAcceptRequest) String

func (x *AuthAcceptRequest) String() string

type AuthAcceptResponse

type AuthAcceptResponse struct {
	IsSuccess bool `protobuf:"varint,1,opt,name=IsSuccess,proto3" json:"IsSuccess,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthAcceptResponse) Descriptor deprecated

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

Deprecated: Use AuthAcceptResponse.ProtoReflect.Descriptor instead.

func (*AuthAcceptResponse) GetIsSuccess

func (x *AuthAcceptResponse) GetIsSuccess() bool

func (*AuthAcceptResponse) ProtoMessage

func (*AuthAcceptResponse) ProtoMessage()

func (*AuthAcceptResponse) ProtoReflect

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

func (*AuthAcceptResponse) Reset

func (x *AuthAcceptResponse) Reset()

func (*AuthAcceptResponse) String

func (x *AuthAcceptResponse) String() string

type AuthsClient

type AuthsClient interface {
	Accept(ctx context.Context, in *AuthAcceptRequest, opts ...grpc.CallOption) (*AuthAcceptResponse, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	FindLoginUser(ctx context.Context, in *FindLoginUserRequest, opts ...grpc.CallOption) (*FindLoginUserResponse, error)
}

AuthsClient is the client API for Auths service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAuthsClient

func NewAuthsClient(cc grpc.ClientConnInterface) AuthsClient

type AuthsServer

AuthsServer is the server API for Auths service.

type FindLoginUserRequest

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

func (*FindLoginUserRequest) Descriptor deprecated

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

Deprecated: Use FindLoginUserRequest.ProtoReflect.Descriptor instead.

func (*FindLoginUserRequest) GetToken

func (x *FindLoginUserRequest) GetToken() string

func (*FindLoginUserRequest) ProtoMessage

func (*FindLoginUserRequest) ProtoMessage()

func (*FindLoginUserRequest) ProtoReflect

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

func (*FindLoginUserRequest) Reset

func (x *FindLoginUserRequest) Reset()

func (*FindLoginUserRequest) String

func (x *FindLoginUserRequest) String() string

type FindLoginUserResponse

type FindLoginUserResponse struct {
	Account    string `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"`
	Role       string `protobuf:"bytes,2,opt,name=Role,proto3" json:"Role,omitempty"`
	CreateTime int64  `protobuf:"zigzag64,3,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"`
	LastTime   int64  `protobuf:"zigzag64,4,opt,name=LastTime,proto3" json:"LastTime,omitempty"`
	Creator    string `protobuf:"bytes,5,opt,name=Creator,proto3" json:"Creator,omitempty"`
	// contains filtered or unexported fields
}

func (*FindLoginUserResponse) Descriptor deprecated

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

Deprecated: Use FindLoginUserResponse.ProtoReflect.Descriptor instead.

func (*FindLoginUserResponse) GetAccount

func (x *FindLoginUserResponse) GetAccount() string

func (*FindLoginUserResponse) GetCreateTime

func (x *FindLoginUserResponse) GetCreateTime() int64

func (*FindLoginUserResponse) GetCreator

func (x *FindLoginUserResponse) GetCreator() string

func (*FindLoginUserResponse) GetLastTime

func (x *FindLoginUserResponse) GetLastTime() int64

func (*FindLoginUserResponse) GetRole

func (x *FindLoginUserResponse) GetRole() string

func (*FindLoginUserResponse) ProtoMessage

func (*FindLoginUserResponse) ProtoMessage()

func (*FindLoginUserResponse) ProtoReflect

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

func (*FindLoginUserResponse) Reset

func (x *FindLoginUserResponse) Reset()

func (*FindLoginUserResponse) String

func (x *FindLoginUserResponse) String() string

type LoginRequest

type LoginRequest struct {
	LoginAccount string `protobuf:"bytes,1,opt,name=LoginAccount,proto3" json:"LoginAccount,omitempty"`
	LoginRole    string `protobuf:"bytes,2,opt,name=LoginRole,proto3" json:"LoginRole,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetLoginAccount

func (x *LoginRequest) GetLoginAccount() string

func (*LoginRequest) GetLoginRole

func (x *LoginRequest) GetLoginRole() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	IsSuccess bool   `protobuf:"varint,1,opt,name=IsSuccess,proto3" json:"IsSuccess,omitempty"`
	AuthToken string `protobuf:"bytes,2,opt,name=AuthToken,proto3" json:"AuthToken,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetAuthToken

func (x *LoginResponse) GetAuthToken() string

func (*LoginResponse) GetIsSuccess

func (x *LoginResponse) GetIsSuccess() bool

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type UnimplementedAuthsServer

type UnimplementedAuthsServer struct {
}

UnimplementedAuthsServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthsServer) Accept

func (*UnimplementedAuthsServer) FindLoginUser

func (*UnimplementedAuthsServer) Login

Jump to

Keyboard shortcuts

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