apikeygateway

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidKey = errors.New("not a valid api key")

Functions

This section is empty.

Types

type ApiKeyMetaData

type ApiKeyMetaData struct {
	CompanyID   string `json:"company_id"`
	Domain      string `json:"domain"`
	Description string `json:"description"`
}

type Gateway

type Gateway interface {
	ValidateApiKey(ctx context.Context) (*ApiKeyMetaData, error)
}

func NewAdapter

func NewAdapter(client restclient.RestClient, env types.Environment) Gateway

type InternalServerError

type InternalServerError struct {
	StatusCode int
	Err        error
}

func (*InternalServerError) Error

func (e *InternalServerError) Error() string

func (*InternalServerError) Unwrap

func (e *InternalServerError) Unwrap() error

Jump to

Keyboard shortcuts

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