admin

package
v0.0.0-...-4a639d8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const AdminAuthKey = "admin-cookie"

Variables

This section is empty.

Functions

func AdminRoutes

func AdminRoutes(ctx context.Context, r *gin.Engine, mint *mint.Mint, logger *slog.Logger)

func AuthMiddleware

func AuthMiddleware(logger *slog.Logger, secret []byte) gin.HandlerFunc

func Bolt11Post

func Bolt11Post(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc

func InitPage

func InitPage(mint *mint.Mint) gin.HandlerFunc

func KeysetsLayoutPage

func KeysetsLayoutPage(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc

func KeysetsPage

func KeysetsPage(mint *m.Mint) gin.HandlerFunc

func LightningDataFormFields

func LightningDataFormFields(mint *m.Mint) gin.HandlerFunc

func LightningNodePage

func LightningNodePage(mint *m.Mint) gin.HandlerFunc

func Login

func Login(mint *mint.Mint, logger *slog.Logger) gin.HandlerFunc

func LoginPage

func LoginPage(logger *slog.Logger, mint *mint.Mint) gin.HandlerFunc

func LogsTab

func LogsTab(logger *slog.Logger) gin.HandlerFunc

func MintBalance

func MintBalance(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc

func MintMeltList

func MintMeltList(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc

func MintMeltSummary

func MintMeltSummary(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc

func MintSettingsForm

func MintSettingsForm(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc

func MintSettingsPage

func MintSettingsPage(mint *m.Mint) gin.HandlerFunc

func RotateSatsSeed

func RotateSatsSeed(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc

Types

type ErrorNotif

type ErrorNotif struct {
	Error string
}

type ListMintMeltVisual

type ListMintMeltVisual []MintMeltRequestVisual

func (ListMintMeltVisual) Len

func (ms ListMintMeltVisual) Len() int

func (ListMintMeltVisual) Less

func (ms ListMintMeltVisual) Less(i, j int) bool

func (ListMintMeltVisual) Swap

func (ms ListMintMeltVisual) Swap(i, j int)

type LoginParams

type LoginParams struct {
	Nonce     string
	ADMINNPUB string
}

type MintMeltRequestVisual

type MintMeltRequestVisual struct {
	Type    string
	Unit    string
	Request string
	Status  string
	SeenAt  string
}

type RotateRequest

type RotateRequest struct {
	Fee int
}

type TIME_REQUEST

type TIME_REQUEST string
var (
	ALL TIME_REQUEST = "all"
)

func ParseToTimeRequest

func ParseToTimeRequest(str string) TIME_REQUEST

func (TIME_REQUEST) RollBackFromNow

func (t TIME_REQUEST) RollBackFromNow() time.Time

return 24 hours by default

Jump to

Keyboard shortcuts

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