services

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(config *models.Config) *AuthService

func (*AuthService) IssueToken added in v1.0.0

func (s *AuthService) IssueToken(credentials models.Login) (string, error)

func (*AuthService) ValidateCredentials

func (s *AuthService) ValidateCredentials(credentials models.Login) bool

func (*AuthService) ValidateToken added in v1.0.0

func (s *AuthService) ValidateToken(token string) (*jwt.Token, error)

type IntegrationService

type IntegrationService struct {
	// contains filtered or unexported fields
}

func NewIntegrationService

func NewIntegrationService(config *models.Config) *IntegrationService

func (*IntegrationService) CommitChanges added in v0.8.1

func (s *IntegrationService) CommitChanges(domain string) (int, error)

func (*IntegrationService) CreateRecord

func (s *IntegrationService) CreateRecord(domain string, request apiModels.SaveRowRequest) (int, error)

func (*IntegrationService) DeleteRecord

func (s *IntegrationService) DeleteRecord(domain string, subdomain string, commit bool) (int, error)

func (*IntegrationService) GetInfo

func (s *IntegrationService) GetInfo(domainName string) ([]models.Record, int, error)

func (*IntegrationService) GetRecord

func (s *IntegrationService) GetRecord(domain string, subdomain string) (models.Record, int, error)

func (*IntegrationService) UpdateRecord

func (s *IntegrationService) UpdateRecord(domain string, request apiModels.SaveRowRequest) (int, error)

Jump to

Keyboard shortcuts

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