config

package
v0.0.0-...-2263012 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OrgID  string `json:"orgID" env:"MASSDRIVER_ORG_ID,required"`
	APIKey string `json:"apiKey" env:"MASSDRIVER_API_KEY,required"`
	URL    string `json:"url" env:"MASSDRIVER_API_URL"`
}

func Get

func Get() (*Config, error)

func NewHandler

func NewHandler() (*Config, error)

func (*Config) ServeHTTP

func (c *Config) ServeHTTP(w http.ResponseWriter, _ *http.Request)

ServeHTTP returns the config

@Summary		Get the users config
@Description	Get the users config
@ID				get-config
@Produce		json
@Success		200	{object}	config.Config
@Router			/config [get]

Jump to

Keyboard shortcuts

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