Documentation ¶
Overview ¶
Package cosmoshield provides some utility from integrating the main `shield` package with Cosmos SDK apps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func UnwrapContext ¶
type ExpanderManager ¶
type ExpanderManager struct {
// contains filtered or unexported fields
}
ExpanderManager implements ast.Expander and allows to register multiple NameSpaceExpanders to dispatch the expansion of identifiers based on their namespace.
func NewExpanderManager ¶
func NewExpanderManager(expanders ...NamespaceExpander) ExpanderManager
func (ExpanderManager) Expand ¶
func (e ExpanderManager) Expand(ctx context.Context, ident *ast.Identifier) (*ast.Expression, error)
type NamespaceExpander ¶
type NamespaceExpander struct { Namespace string // contains filtered or unexported fields }
NamespaceExpander is an ast.Expander that can be registered into an ExpanderManager to expand identifiers based on their namespace.
func NewPrefixedExpander ¶
func NewPrefixedExpander(namespace string, expander ast.Expander) NamespaceExpander
func (NamespaceExpander) Expand ¶
func (e NamespaceExpander) Expand(ctx context.Context, ident *ast.Identifier) (*ast.Expression, error)
Click to show internal directories.
Click to hide internal directories.