internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const HttpBindingAddressVarenv = "SUPERSECRETMESSAGE_HTTP_BINDING_ADDRESS"
View Source
const HttpsBindingAddressVarenv = "SUPERSECRETMESSAGE_HTTPS_BINDING_ADDRESS"
View Source
const HttpsRedirectEnabledVarenv = "SUPERSECRETMESSAGE_HTTPS_REDIRECT_ENABLED"
View Source
const TLSAutoDomainVarenv = "SUPERSECRETMESSAGE_TLS_AUTO_DOMAIN"
View Source
const TLSCertFilepathVarenv = "SUPERSECRETMESSAGE_TLS_CERT_FILEPATH"
View Source
const TLSCertKeyFilepathVarenv = "SUPERSECRETMESSAGE_TLS_CERT_KEY_FILEPATH"
View Source
const VaultPrefixenv = "SUPERSECRETMESSAGE_VAULT_PREFIX"

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() conf

func Serve

func Serve(cnf conf)

Types

type MsgResponse

type MsgResponse struct {
	Msg string `json:"msg"`
}

type SecretHandlers

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

func (SecretHandlers) CreateMsgHandler

func (s SecretHandlers) CreateMsgHandler(ctx echo.Context) error

func (SecretHandlers) GetMsgHandler

func (s SecretHandlers) GetMsgHandler(ctx echo.Context) error

type SecretMsgStorer

type SecretMsgStorer interface {
	Store(string, ttl string) (token string, err error)
	Get(token string) (msg string, err error)
}

type TokenResponse

type TokenResponse struct {
	Token     string `json:"token"`
	FileToken string `json:"filetoken,omitempty"`
	FileName  string `json:"filename,omitempty"`
}

Jump to

Keyboard shortcuts

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