coderd

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: AGPL-3.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options *Options) (http.Handler, func())

New constructs the Coder API into an HTTP handler.

A wait function is returned to handle awaiting closure of hijacked HTTP requests.

Types

type Options

type Options struct {
	AccessURL *url.URL
	Logger    slog.Logger
	Database  database.Store
	Pubsub    database.Pubsub

	AgentConnectionUpdateFrequency time.Duration
	AWSCertificates                awsidentity.Certificates
	GoogleTokenValidator           *idtoken.Validator
	ICEServers                     []webrtc.ICEServer
	SecureAuthCookie               bool
	SSHKeygenAlgorithm             gitsshkey.Algorithm
	TURNServer                     *turnconn.Server
}

Options are requires parameters for Coder to start.

Directories

Path Synopsis
autostart
schedule
package schedule provides utilities for parsing and deserializing cron-style expressions.
package schedule provides utilities for parsing and deserializing cron-style expressions.
Package database connects to external services for stateful storage.
Package database connects to external services for stateful storage.

Jump to

Keyboard shortcuts

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