services

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthService

func NewAuthService(config *models.Config) *authService

Types

type AuthService

type AuthService interface {
	ValidateCredentials(credentials models.Login) bool
}

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, subdomain string, ip string, commit bool) (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, subdomain string, newIp string, commit bool) (int, error)

Jump to

Keyboard shortcuts

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