Documentation ¶
Index ¶
- Constants
- func AdminRoutes(ctx context.Context, r *gin.Engine, mint *mint.Mint, logger *slog.Logger)
- func AuthMiddleware(logger *slog.Logger, secret []byte) gin.HandlerFunc
- func Bolt11Post(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc
- func InitPage(mint *mint.Mint) gin.HandlerFunc
- func KeysetsLayoutPage(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc
- func KeysetsPage(mint *m.Mint) gin.HandlerFunc
- func LightningDataFormFields(mint *m.Mint) gin.HandlerFunc
- func LightningNodePage(mint *m.Mint) gin.HandlerFunc
- func Login(mint *mint.Mint, logger *slog.Logger) gin.HandlerFunc
- func LoginPage(logger *slog.Logger, mint *mint.Mint) gin.HandlerFunc
- func LogsTab(logger *slog.Logger) gin.HandlerFunc
- func MintBalance(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc
- func MintMeltList(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc
- func MintMeltSummary(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc
- func MintSettingsForm(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc
- func MintSettingsPage(mint *m.Mint) gin.HandlerFunc
- func RotateSatsSeed(mint *m.Mint, logger *slog.Logger) gin.HandlerFunc
- type ErrorNotif
- type ListMintMeltVisual
- type LoginParams
- type MintMeltRequestVisual
- type RotateRequest
- type TIME_REQUEST
Constants ¶
View Source
const AdminAuthKey = "admin-cookie"
Variables ¶
This section is empty.
Functions ¶
func AdminRoutes ¶
func AuthMiddleware ¶
func AuthMiddleware(logger *slog.Logger, secret []byte) gin.HandlerFunc
func Bolt11Post ¶
func KeysetsLayoutPage ¶
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 MintBalance ¶
func MintMeltList ¶
func MintMeltSummary ¶
func MintSettingsForm ¶
func MintSettingsPage ¶
func MintSettingsPage(mint *m.Mint) gin.HandlerFunc
func RotateSatsSeed ¶
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 MintMeltRequestVisual ¶
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
Click to show internal directories.
Click to hide internal directories.