authz

package
v0.0.0-...-774612f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalExecData

func UnmarshalExecData(msg *MsgExec) ([]interface{}, []sdk.Msg)

Types

type AuthzClient

type AuthzClient struct {
}

func NewClient

func NewClient() AuthzClient

func (AuthzClient) HandleTxMsg

func (authz AuthzClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)

type DocMsgExec

type DocMsgExec struct {
	Grantee string        `bson:"grantee"`
	Msgs    []interface{} `bson:"msgs"`
}

func (*DocMsgExec) BuildMsg

func (m *DocMsgExec) BuildMsg(v interface{})

func (*DocMsgExec) GetType

func (m *DocMsgExec) GetType() string

func (*DocMsgExec) HandleTxMsg

func (m *DocMsgExec) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgGrant

type DocMsgGrant struct {
	Granter string `bson:"granter"`
	Grantee string `bson:"grantee"`
	Grant   Grant  `bson:"grant"`
}

func (*DocMsgGrant) BuildMsg

func (m *DocMsgGrant) BuildMsg(v interface{})

func (*DocMsgGrant) GetType

func (m *DocMsgGrant) GetType() string

func (*DocMsgGrant) HandleTxMsg

func (m *DocMsgGrant) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgRevoke

type DocMsgRevoke struct {
	Granter    string `bson:"granter"`
	Grantee    string `bson:"grantee"`
	MsgTypeUrl string `bson:"msg_type_url"`
}

func (*DocMsgRevoke) BuildMsg

func (m *DocMsgRevoke) BuildMsg(v interface{})

func (*DocMsgRevoke) GetType

func (m *DocMsgRevoke) GetType() string

func (*DocMsgRevoke) HandleTxMsg

func (m *DocMsgRevoke) HandleTxMsg(v SdkMsg) MsgDocInfo

type Grant

type Grant struct {
	Authorization interface{} `bson:"authorization"`
	Expiration    *time.Time  `bson:"expiration"`
}

Jump to

Keyboard shortcuts

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