Help us shape the future of Go! Take the 2026 Go Developer Survey

services

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationService

type ApplicationService interface {
	CreateApp(app *domain.Application) (domain.Application, error)
	GetAppByID(id string) (domain.Application, error)
	GetAllApps() ([]domain.Application, error)
	DeleteApp(app domain.Application) error
}

func NewAppService

func NewAppService() ApplicationService

type AuthService

type AuthService interface {
	InitiateLogin() (*domain.LoginCredentials, error)
	CompleteLogin(credentials *domain.LoginCredentials) (*domain.AccessToken, error)
	PollForToken(credentials *domain.LoginCredentials) (*domain.AccessToken, error)
	SaveToken(token *domain.AccessToken) error
	Whoami() (*domain.UserInfo, error)
	Logout() error
}

func NewAuthService

func NewAuthService() AuthService

type EnvTypeService

type EnvTypeService interface {
	GetEnvTypeByID(id string) (domain.EnvType, error)
	GetEnvTypeByAppID(appID string) ([]domain.EnvType, error)
}

func NewEnvTypeService

func NewEnvTypeService() EnvTypeService

type RedactorService

type RedactorService interface {
	RunRedactor(args []string) int
}

func NewRedactorService

func NewRedactorService(redactText []string) RedactorService

type SyncService

type SyncService interface {
	ReadConfigData() (domain.SyncConfig, error)
	SyncConfigExist() error
	ReadLocalEnv() (map[string]string, error)
	ReadRemoteEnv() ([]*domain.EnvironmentVariable, error)
	CalculateEnvDiff(local map[string]string, remote map[string]string) *domain.EnvironmentSync
	WriteLocalEnv(env map[string]string) error
	WriteRemoteEnv(env *domain.EnvironmentSync) error
}

func NewSyncService

func NewSyncService() SyncService

Jump to

Keyboard shortcuts

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