scene

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Scene provides well structured template contexts and functionality for HTML template rendering. We chose the word "scene" to represent the context since "context" is an overloaded term and milieu was too hard to spell.

Index

Constants

View Source
const (
	Version         = "Version"
	Page            = "Page"
	IsAuthenticated = "IsAuthenticated"
	User            = "User"
	APIData         = "APIData"
)

Keys for default Scene context items

View Source
const (
	RoleAdmin      = "Admin"
	RoleCompliance = "Compliance"
	RoleObserver   = "Observer"
)

Role string constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Scene

type Scene map[string]interface{}

func New

func New(c *gin.Context) Scene

func (Scene) APIKeyDetail added in v0.24.1

func (s Scene) APIKeyDetail() *api.APIKey

func (Scene) APIKeysList added in v0.24.1

func (s Scene) APIKeysList() *api.APIKeyList

func (Scene) AccountDetail added in v0.19.0

func (s Scene) AccountDetail() *api.Account

func (Scene) AccountsList

func (s Scene) AccountsList() *api.AccountsList

func (Scene) CounterpartyDetail added in v0.25.0

func (s Scene) CounterpartyDetail() *api.Counterparty

func (Scene) CounterpartyList

func (s Scene) CounterpartyList() *api.CounterpartyList

func (Scene) CreateAPIKey added in v0.24.1

func (s Scene) CreateAPIKey() *api.APIKey

func (Scene) GetUser

func (s Scene) GetUser() *auth.Claims

func (Scene) HasRole

func (s Scene) HasRole(role string) bool

func (Scene) IsAdmin

func (s Scene) IsAdmin() bool

func (Scene) IsAuthenticated

func (s Scene) IsAuthenticated() bool

func (Scene) IsViewOnly

func (s Scene) IsViewOnly() bool

func (Scene) TransactionDetail added in v0.19.0

func (s Scene) TransactionDetail() *api.Transaction

func (Scene) TransactionsList added in v0.19.0

func (s Scene) TransactionsList() *api.TransactionsList

func (Scene) Update

func (s Scene) Update(o Scene) Scene

func (Scene) UserList

func (s Scene) UserList() *api.UserList

func (Scene) WithAPIData

func (s Scene) WithAPIData(data interface{}) Scene

Jump to

Keyboard shortcuts

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