Documentation ¶
Index ¶
- Variables
- type Account
- type AccountName
- type AccountPB
- type AccountSettings
- func (a *AccountSettings) Clone() *AccountSettings
- func (a *AccountSettings) Enabled() bool
- func (a *AccountSettings) MarshalJSON() ([]byte, error)
- func (a *AccountSettings) Memo() map[string]string
- func (a *AccountSettings) PB() *pbaccount.AccountSettings
- func (a *AccountSettings) SetEnabled(e bool) *AccountSettings
- func (a *AccountSettings) SetMemo(memo map[string]string) *AccountSettings
- func (a *AccountSettings) UnmarshalJSON(bs []byte) error
- type AccountSettingsPB
Constants ¶
This section is empty.
Variables ¶
View Source
var InternalAccountName = AccountName("internal")
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func NewAccount(name AccountName, d *AccountSettings, createdAt time.Time, updatedAt *time.Time) (*Account, error)
func (*Account) MarshalJSON ¶
func (*Account) Name ¶
func (a *Account) Name() AccountName
func (*Account) Settings ¶
func (a *Account) Settings() *AccountSettings
func (*Account) UnmarshalJSON ¶
type AccountName ¶
type AccountName string
func (AccountName) Empty ¶
func (n AccountName) Empty() bool
func (AccountName) IsInternal ¶
func (n AccountName) IsInternal() bool
func (*AccountName) MaybeString ¶
func (n *AccountName) MaybeString() string
func (AccountName) String ¶
func (n AccountName) String() string
type AccountSettings ¶
type AccountSettings struct {
// contains filtered or unexported fields
}
func AccountSettingsFromProto ¶
func AccountSettingsFromProto(pb *pbaccount.AccountSettings) (*AccountSettings, error)
func MustAccountSettingsFromProto ¶
func MustAccountSettingsFromProto(pb *pbaccount.AccountSettings) *AccountSettings
func (*AccountSettings) Clone ¶
func (a *AccountSettings) Clone() *AccountSettings
func (*AccountSettings) Enabled ¶
func (a *AccountSettings) Enabled() bool
func (*AccountSettings) MarshalJSON ¶
func (a *AccountSettings) MarshalJSON() ([]byte, error)
func (*AccountSettings) Memo ¶
func (a *AccountSettings) Memo() map[string]string
func (*AccountSettings) PB ¶
func (a *AccountSettings) PB() *pbaccount.AccountSettings
func (*AccountSettings) SetEnabled ¶
func (a *AccountSettings) SetEnabled(e bool) *AccountSettings
func (*AccountSettings) SetMemo ¶
func (a *AccountSettings) SetMemo(memo map[string]string) *AccountSettings
func (*AccountSettings) UnmarshalJSON ¶
func (a *AccountSettings) UnmarshalJSON(bs []byte) error
type AccountSettingsPB ¶
type AccountSettingsPB = pbaccount.AccountSettings
Click to show internal directories.
Click to hide internal directories.