Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(tokenCfg domain.Token, roleRepo domain.RoleRepository, userClient userPB.UserClient) *service
Types ¶
type Auth ¶
type Auth interface { GenerateOauth2Token(ctx context.Context, userId string, scope []string, extra map[string]interface{}) (token oauth2.Token, err error) ParseJwtToken(tokenStr string) (tokenInfo domain.DebugTokenInfo, err error) HasAccessTo(ctx context.Context, roles []string, permission domain.Permission) (ok bool, err error) }
Click to show internal directories.
Click to hide internal directories.