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
- type Scene
- func (s Scene) APIKeyDetail() *api.APIKey
- func (s Scene) APIKeysList() *api.APIKeyList
- func (s Scene) AccountDetail() *api.Account
- func (s Scene) AccountsList() *api.AccountsList
- func (s Scene) CounterpartyDetail() *api.Counterparty
- func (s Scene) CounterpartyList() *api.CounterpartyList
- func (s Scene) CreateAPIKey() *api.APIKey
- func (s Scene) GetUser() *auth.Claims
- func (s Scene) HasRole(role string) bool
- func (s Scene) IsAdmin() bool
- func (s Scene) IsAuthenticated() bool
- func (s Scene) IsViewOnly() bool
- func (s Scene) TransactionDetail() *api.Transaction
- func (s Scene) TransactionsList() *api.TransactionsList
- func (s Scene) Update(o Scene) Scene
- func (s Scene) UserList() *api.UserList
- func (s Scene) WithAPIData(data interface{}) Scene
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 (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) IsAuthenticated ¶
func (Scene) IsViewOnly ¶
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) WithAPIData ¶
Click to show internal directories.
Click to hide internal directories.