internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 15 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 {
	DefaultBucket struct {
		Secret HashSecret
	} `split_words:"true"`
}

Config supports custom configuration.

func (*Config) Mount

func (c *Config) Mount(rts *api.Routes)

Mount mounts the config onto the routes.

type HashSecret

type HashSecret []byte

HashSecret is used for hashing values.

func (*HashSecret) Decode

func (s *HashSecret) Decode(val string) error

Decode implements envconfig.Decoder interface.

func (HashSecret) Encode

func (s HashSecret) Encode(value string) []byte

Encode hashes a string value.

Jump to

Keyboard shortcuts

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