From 55e63eee5b57dae702e1e2917f60a18110c1d63f Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Thu, 11 Jan 2024 20:53:31 +0100 Subject: [PATCH] docs: Add documentation for the method types --- internal/repo/client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/repo/client.go b/internal/repo/client.go index c39932d..f0eb123 100644 --- a/internal/repo/client.go +++ b/internal/repo/client.go @@ -19,12 +19,18 @@ type GetRepositoryMethod func(username, repositoryName string) (Repository, erro // /@ exists. If not, returns "", error. type GetFileMethod func(username, repositoryName, branch, path string, since *time.Time) ([]byte, bool, error) +// Returns the result of a CNAME lookup for @domain. type LookupCNAMEMethod func(domain string) (string, error) +// Return the repository the domain should point to by looking up the TXT record +// "_rio-pages.". type LookupRepoTXTMethod func(domain string) (string, error) +// Check of the repository / contains the specified +// branch. type HasBranchMethod func(username, repositoryName, branchName string) bool +// Check if the specified username exists. type HasUserMethod func(username string) bool type Repository struct {