services

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL