apiaccount

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 AccountFromProto

func AccountFromProto(pb *pbaccount.Account) (*Account, error)

func NewAccount

func NewAccount(name AccountName, d *AccountSettings, createdAt time.Time, updatedAt *time.Time) (*Account, error)

func (*Account) Clone

func (a *Account) Clone() *Account

func (*Account) MarshalJSON

func (a *Account) MarshalJSON() ([]byte, error)

func (*Account) Name

func (a *Account) Name() AccountName

func (*Account) PB

func (a *Account) PB() *pbaccount.Account

func (*Account) Settings

func (a *Account) Settings() *AccountSettings

func (*Account) UnmarshalJSON

func (a *Account) UnmarshalJSON(bs []byte) error

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 AccountPB

type AccountPB = pbaccount.Account

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 (*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

Jump to

Keyboard shortcuts

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