Documentation ¶
Overview ¶
Package platform provides a Platform service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { URL string `yaml:"url"` AccessToken string `yaml:"accessToken"` EnablePersonalToken bool `yaml:"enablePersonalTokens"` }
Config provides configuration for the Platform service.
type PersonalTokenVerifier ¶
type PersonalTokenVerifier interface { IsAllowedToken(ctx context.Context, token string) bool IsPersonalTokenEnabled() bool }
PersonalTokenVerifier declares an interface of a struct for Platform Personal Token verification.
type Service ¶
Service defines a Platform service.
func (*Service) IsAllowedToken ¶
IsAllowedToken checks if the Platform Personal Token is allowed.
func (*Service) IsPersonalTokenEnabled ¶
IsPersonalTokenEnabled checks if the Platform Personal Token is enabled.
Click to show internal directories.
Click to hide internal directories.