server

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootHandler

func RootHandler(w http.ResponseWriter, r *http.Request)

func RunServer

func RunServer(ctx context.Context, opts *Options) error

func SetupServer

func SetupServer(issuer string, storage Storage, logger *slog.Logger, wrapServer bool, extraOptions ...op.Option) chi.Router

Types

type Login

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

func NewLogin

func NewLogin(authenticate authenticate, callback func(context.Context, string) string, issuerInterceptor *op.IssuerInterceptor) *Login

type Options

type Options struct {
	Port   int
	Issuer string
	Config *config.Config
	Log    *logrus.Entry
}

type Storage

type Storage interface {
	op.Storage
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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