server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...ServerFuncOpt) (http.Handler, error)

Types

type GrafanaClaimsConfig

type GrafanaClaimsConfig struct {
	Login string
	Name  string
}

type GrafanaResponseHeaders

type GrafanaResponseHeaders struct {
	User string
}

type Server

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

type ServerFuncOpt

type ServerFuncOpt func(*Server) error

func SkipTLSVerify

func SkipTLSVerify() ServerFuncOpt

func WithConfigGroups

func WithConfigGroups(groups config.Groups) ServerFuncOpt

func WithCookieName

func WithCookieName(cookie string) ServerFuncOpt

func WithGrafanaClaimsConfig

func WithGrafanaClaimsConfig(config GrafanaClaimsConfig) ServerFuncOpt

func WithGrafanaClient

func WithGrafanaClient(grafanaClient *grafana.Client) ServerFuncOpt

func WithGrafanaProxyURL

func WithGrafanaProxyURL(grafanaUrl *url.URL) ServerFuncOpt

func WithGrafanaResponseHeaders

func WithGrafanaResponseHeaders(headers GrafanaResponseHeaders) ServerFuncOpt

func WithHeaderName added in v0.2.0

func WithHeaderName(header string) ServerFuncOpt

Jump to

Keyboard shortcuts

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