Documentation ¶
Index ¶
- Constants
- Variables
- func Auth(accessToken string, permissions []int64) (*pb.AuthResponse, error)
- func Connect() error
- func CreateToken(req *pb.CreateTokenRequest) (*pb.CreateTokenResponse, error)
- func GetAccountIdFromContext(ctx context.Context) (int64, error)
- func GetAccountTypeFromContext(ctx context.Context) (int64, error)
- func GetDomainIdFromContext(ctx context.Context) (int64, error)
- func GetProjectIdFromContext(ctx context.Context) (int64, error)
- func IamServerUnaryInterceptor(args map[string][]int64) grpc.UnaryServerInterceptor
- func Init(cfg IamConfig)
- func VerifyToken(accessToken string) (*pb.VerifyTokenResponse, error)
- type FKInfo
- type IamConfig
Constants ¶
View Source
const ( ERROR_INVALID_TOKEN = 1 ERROR_EXPIRED_TOKEN = 2 )
Variables ¶
View Source
var Permissions = map[string]int64{}
Functions ¶
func CreateToken ¶
func CreateToken(req *pb.CreateTokenRequest) (*pb.CreateTokenResponse, error)
func IamServerUnaryInterceptor ¶
func IamServerUnaryInterceptor(args map[string][]int64) grpc.UnaryServerInterceptor
func VerifyToken ¶
func VerifyToken(accessToken string) (*pb.VerifyTokenResponse, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.