service

package
v0.0.0-...-a634c84 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthService

func NewAuthService(repo *database.Repo, adminGroupID string, sessionLength time.Duration, tokenLength int, azureClient *auth.Azure) *authService

Types

type AuthService

type AuthService interface {
	GetLoginURL(state string) string
	CreateSession(ctx context.Context, code string) (*auth.Session, error)
	DeleteSession(ctx context.Context, token string) error
}

type GithubService

type GithubService interface {
	Repositories(ctx context.Context) []string
	Branches(ctx context.Context, r github.Repository) ([]string, error)
}

func NewGithubService

func NewGithubService(ghs *github.Fetcher) GithubService

Jump to

Keyboard shortcuts

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