Documentation
¶
Index ¶
- Variables
- type AuthService
- func (s *AuthService) Auth(ctx context.Context, req *pb.AuthReq) (*pb.AuthReply, error)
- func (s *AuthService) Callback(ctx context.Context, req *pb.CallbackReq) (*pb.UserSimple, error)
- func (s *AuthService) GetPermissions(ctx context.Context, req *pb.PermissionsReq) (rsp *pb.PermissionsReply, err error)
- func (s *AuthService) GetPublicContent(ctx context.Context, req *pb.PublicContentReq) (rsp *pb.PublicContentReply, err error)
- func (s *AuthService) Login(ctx context.Context, req *pb.LoginReq) (*pb.User, error)
- func (s *AuthService) Logout(ctx context.Context, req *pb.LogoutReq) (*pb.LogoutReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewAuthService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
pb.UnimplementedAuthServer
// contains filtered or unexported fields
}
func NewAuthService ¶
func (*AuthService) Callback ¶
func (s *AuthService) Callback(ctx context.Context, req *pb.CallbackReq) (*pb.UserSimple, error)
func (*AuthService) GetPermissions ¶
func (s *AuthService) GetPermissions(ctx context.Context, req *pb.PermissionsReq) (rsp *pb.PermissionsReply, err error)
func (*AuthService) GetPublicContent ¶
func (s *AuthService) GetPublicContent(ctx context.Context, req *pb.PublicContentReq) (rsp *pb.PublicContentReply, err error)
func (*AuthService) Logout ¶
func (s *AuthService) Logout(ctx context.Context, req *pb.LogoutReq) (*pb.LogoutReply, error)
Click to show internal directories.
Click to hide internal directories.