Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArkBaseService ¶
type ArkBaseService struct {
Service ArkService
Logger *common.ArkLogger
// contains filtered or unexported fields
}
ArkBaseService is a struct that implements the ArkService interface and provides base functionality for Ark services.
func NewArkBaseService ¶
func NewArkBaseService(service ArkService, authenticators ...auth.ArkAuth) (*ArkBaseService, error)
NewArkBaseService creates a new instance of ArkBaseService with the provided service and authenticators.
func (*ArkBaseService) Authenticator ¶
func (s *ArkBaseService) Authenticator(authName string) (auth.ArkAuth, error)
Authenticator returns the authenticator with the specified name from the ArkBaseService.
func (*ArkBaseService) Authenticators ¶
func (s *ArkBaseService) Authenticators() []auth.ArkAuth
Authenticators returns the list of authenticators for the ArkBaseService.
func (*ArkBaseService) HasAuthenticator ¶
func (s *ArkBaseService) HasAuthenticator(authName string) bool
HasAuthenticator checks if the ArkBaseService has an authenticator with the specified name.
type ArkService ¶
type ArkService interface {
ServiceConfig() ArkServiceConfig
}
ArkService is an interface that defines the methods for an Ark service.
type ArkServiceConfig ¶
type ArkServiceConfig struct {
ServiceName string
RequiredAuthenticatorNames []string
OptionalAuthenticatorNames []string
}
ArkServiceConfig defines the configuration for an Ark service.
Click to show internal directories.
Click to hide internal directories.