remoteserver

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package remoteserver composes distributed identity and owner-scoped applications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(ctx context.Context, store *reviewstore.Store, settings Settings, assets fs.FS) (http.Handler, func() error, error)

Handler supplies distributed identity; local composition never calls it.

func MultiHandler

func MultiHandler(ctx context.Context, store *reviewstore.Store, assets fs.FS, options ...Settings) (http.Handler, func() error, error)

func Retention

func Retention(days int) (time.Duration, error)

func Run

func Run(ctx context.Context, settings Settings, ready func(string)) error

Types

type GitHubSettings added in v0.2.1

type GitHubSettings struct {
	AppID          int64
	ClientID       string
	ClientSecret   string
	PrivateKeyFile string
	WebhookSecret  string
	TokenKey       string
	PublicURL      string
	// InternalListen serves the fetcher protocol, authenticated by FetcherSecret.
	InternalListen string
	FetcherSecret  string
	// contains filtered or unexported fields
}

GitHubSettings enables the GitHub App integration; nil disables its routes.

type Settings

type Settings struct {
	Listen          string
	State           string
	Username        string
	Password        string
	SignupEnabled   bool
	InsecureCookies bool
	RetentionDays   int
	GitHub          *GitHubSettings
}

Jump to

Keyboard shortcuts

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