hpauth

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 8 Imported by: 0

README

hpauth

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHotelPlannerAuthToken

func GetHotelPlannerAuthToken(apiKey string, secretKey string, accountId string) string

func New

func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)

New created a new Demo plugin.

Types

type Config

type Config struct {
	Headers  map[string]string
	HpConfig map[string]string
}

Config the plugin configuration.

func CreateConfig

func CreateConfig() *Config

CreateConfig creates the default plugin configuration.

type Demo

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

Demo a Demo plugin.

func (*Demo) ServeHTTP

func (a *Demo) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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