cluster

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterIDKey  = "cluster_auth_cluster_id"
	SharedKeysKey = "cluster_auth_shared_keys"
)

Variables

This section is empty.

Functions

func AuthorizedID

func AuthorizedID(c *fiber.Ctx) string

func AuthorizedKeys

func AuthorizedKeys(c *fiber.Ctx) *keyring.SharedKeys

Types

type ClusterMiddleware

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

func New

func New(ctx context.Context, keyringStore storage.KeyringStoreBroker, headerKey string) (*ClusterMiddleware, error)

func (*ClusterMiddleware) Handle

func (m *ClusterMiddleware) Handle(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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