api

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	V1Path = "/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New(options *Options, storage storage.Storage, controller *controller.Controller, logger *zerolog.Logger) *API

func (*API) Start

func (s *API) Start() error

func (*API) Stop

func (s *API) Stop() error

type Options

type Options struct {
	Disabled             bool
	ListenAddress        string
	Endpoint             string
	TLS                  bool
	DefaultNextURL       string
	DeviceCodeEnabled    bool
	GithubEnabled        bool
	GithubClientID       string
	GithubClientSecret   string
	GoogleEnabled        bool
	GoogleClientID       string
	GoogleClientSecret   string
	MagicLinkEnabled     bool
	MagicLinkFrom        string
	MagicLinkProjectName string
	MagicLinkProjectURL  string
	PostmarkAPIToken     string
	PostmarkTemplateID   int
	PostmarkTag          string
}

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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