Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyNameSeparator = errors.New("name separator cannot be empty")
)
Functions ¶
This section is empty.
Types ¶
type BasicService ¶ added in v0.1.2
type BasicService interface {
goapikey.BasicService
Load(path string) error
}
BasicService is the basic service interface for API key validation
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the local service for API key validation
func NewService ¶
NewService creates a new local service for API key validation
Parameters:
- logger: the logger to use
Returns:
- *Service: the local service
- error: An error if something went wrong
func (Service) IsAPIKeyValid ¶
IsAPIKeyValid checks if the API key is valid
Parameters:
- apiKey: the API key to check
Returns:
- bool: true if the API key is valid, false otherwise
Click to show internal directories.
Click to hide internal directories.