Documentation
¶
Index ¶
- Constants
- type AccountGrpcClientV1
- func (c *AccountGrpcClientV1) CreateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
- func (c *AccountGrpcClientV1) DeleteAccountById(correlationId string, id string) (result *AccountV1, err error)
- func (c *AccountGrpcClientV1) GetAccountById(correlationId string, id string) (result *AccountV1, err error)
- func (c *AccountGrpcClientV1) GetAccountByIdOrLogin(correlationId string, idOrLogin string) (result *AccountV1, err error)
- func (c *AccountGrpcClientV1) GetAccountByLogin(correlationId string, login string) (result *AccountV1, err error)
- func (c *AccountGrpcClientV1) GetAccounts(correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result *data.DataPage, err error)
- func (c *AccountGrpcClientV1) UpdateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
- type AccountV1
- type AccountsHttpCommandableClientV1
- func (c *AccountsHttpCommandableClientV1) CreateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
- func (c *AccountsHttpCommandableClientV1) DeleteAccountById(correlationId string, id string) (result *AccountV1, err error)
- func (c *AccountsHttpCommandableClientV1) GetAccountById(correlationId string, id string) (result *AccountV1, err error)
- func (c *AccountsHttpCommandableClientV1) GetAccountByIdOrLogin(correlationId string, idOrLogin string) (result *AccountV1, err error)
- func (c *AccountsHttpCommandableClientV1) GetAccountByLogin(correlationId string, login string) (result *AccountV1, err error)
- func (c *AccountsHttpCommandableClientV1) GetAccounts(correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result *data.DataPage, err error)
- func (c *AccountsHttpCommandableClientV1) UpdateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
- type AccountsMemoryClientV1
- func (c *AccountsMemoryClientV1) CreateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
- func (c *AccountsMemoryClientV1) DeleteAccountById(correlationId string, id string) (result *AccountV1, err error)
- func (c *AccountsMemoryClientV1) GetAccountById(correlationId string, id string) (result *AccountV1, err error)
- func (c *AccountsMemoryClientV1) GetAccountByIdOrLogin(correlationId string, idOrLogin string) (result *AccountV1, err error)
- func (c *AccountsMemoryClientV1) GetAccountByLogin(correlationId string, login string) (result *AccountV1, err error)
- func (c *AccountsMemoryClientV1) GetAccounts(correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result *data.DataPage, err error)
- func (c *AccountsMemoryClientV1) UpdateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
- type IAccountsClientV1
Constants ¶
View Source
const ( AccountCreated = "account created" AccountChanged = "account changed" AccountDeleted = "account deleted" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountGrpcClientV1 ¶
type AccountGrpcClientV1 struct {
clients.GrpcClient
}
func NewAccountGrpcClientV1 ¶
func NewAccountGrpcClientV1() *AccountGrpcClientV1
func (*AccountGrpcClientV1) CreateAccount ¶
func (c *AccountGrpcClientV1) CreateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
func (*AccountGrpcClientV1) DeleteAccountById ¶
func (c *AccountGrpcClientV1) DeleteAccountById(correlationId string, id string) (result *AccountV1, err error)
func (*AccountGrpcClientV1) GetAccountById ¶
func (c *AccountGrpcClientV1) GetAccountById(correlationId string, id string) (result *AccountV1, err error)
func (*AccountGrpcClientV1) GetAccountByIdOrLogin ¶
func (c *AccountGrpcClientV1) GetAccountByIdOrLogin(correlationId string, idOrLogin string) (result *AccountV1, err error)
func (*AccountGrpcClientV1) GetAccountByLogin ¶
func (c *AccountGrpcClientV1) GetAccountByLogin(correlationId string, login string) (result *AccountV1, err error)
func (*AccountGrpcClientV1) GetAccounts ¶
func (c *AccountGrpcClientV1) GetAccounts(correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result *data.DataPage, err error)
func (*AccountGrpcClientV1) UpdateAccount ¶
func (c *AccountGrpcClientV1) UpdateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
type AccountV1 ¶
type AccountV1 struct { /* Identification */ Id string `json:"id"` Login string `json:"login"` Name string `json:"name"` /* Activity tracking */ CreateTime time.Time `json:"create_time"` Deleted bool `json:"deleted"` Active bool `json:"active"` /* User preferences */ About string `json:"about"` TimeZone string `json:"time_zone"` Language string `json:"language"` Theme string `json:"theme"` /* Custom fields */ CustomHdr interface{} `json:"custom_hdr"` CustomDat interface{} `json:"custom_dat"` }
func EmptyAccountV1 ¶
func EmptyAccountV1() *AccountV1
type AccountsHttpCommandableClientV1 ¶
type AccountsHttpCommandableClientV1 struct { *cclients.CommandableHttpClient // contains filtered or unexported fields }
func NewAccountsHttpCommandableClientV1 ¶
func NewAccountsHttpCommandableClientV1() *AccountsHttpCommandableClientV1
func (*AccountsHttpCommandableClientV1) CreateAccount ¶
func (c *AccountsHttpCommandableClientV1) CreateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
func (*AccountsHttpCommandableClientV1) DeleteAccountById ¶
func (c *AccountsHttpCommandableClientV1) DeleteAccountById(correlationId string, id string) (result *AccountV1, err error)
func (*AccountsHttpCommandableClientV1) GetAccountById ¶
func (c *AccountsHttpCommandableClientV1) GetAccountById(correlationId string, id string) (result *AccountV1, err error)
func (*AccountsHttpCommandableClientV1) GetAccountByIdOrLogin ¶
func (c *AccountsHttpCommandableClientV1) GetAccountByIdOrLogin(correlationId string, idOrLogin string) (result *AccountV1, err error)
func (*AccountsHttpCommandableClientV1) GetAccountByLogin ¶
func (c *AccountsHttpCommandableClientV1) GetAccountByLogin(correlationId string, login string) (result *AccountV1, err error)
func (*AccountsHttpCommandableClientV1) GetAccounts ¶
func (c *AccountsHttpCommandableClientV1) GetAccounts(correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result *data.DataPage, err error)
func (*AccountsHttpCommandableClientV1) UpdateAccount ¶
func (c *AccountsHttpCommandableClientV1) UpdateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
type AccountsMemoryClientV1 ¶
type AccountsMemoryClientV1 struct {
// contains filtered or unexported fields
}
func NewAccountsMemoryClientV1 ¶
func NewAccountsMemoryClientV1(accounts []AccountV1) *AccountsMemoryClientV1
func NewEmptyAccountsMemoryClientV1 ¶
func NewEmptyAccountsMemoryClientV1() *AccountsMemoryClientV1
func (*AccountsMemoryClientV1) CreateAccount ¶
func (c *AccountsMemoryClientV1) CreateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
func (*AccountsMemoryClientV1) DeleteAccountById ¶
func (c *AccountsMemoryClientV1) DeleteAccountById(correlationId string, id string) (result *AccountV1, err error)
func (*AccountsMemoryClientV1) GetAccountById ¶
func (c *AccountsMemoryClientV1) GetAccountById(correlationId string, id string) (result *AccountV1, err error)
func (*AccountsMemoryClientV1) GetAccountByIdOrLogin ¶
func (c *AccountsMemoryClientV1) GetAccountByIdOrLogin(correlationId string, idOrLogin string) (result *AccountV1, err error)
func (*AccountsMemoryClientV1) GetAccountByLogin ¶
func (c *AccountsMemoryClientV1) GetAccountByLogin(correlationId string, login string) (result *AccountV1, err error)
func (*AccountsMemoryClientV1) GetAccounts ¶
func (c *AccountsMemoryClientV1) GetAccounts(correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result *data.DataPage, err error)
func (*AccountsMemoryClientV1) UpdateAccount ¶
func (c *AccountsMemoryClientV1) UpdateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error)
type IAccountsClientV1 ¶
type IAccountsClientV1 interface { GetAccounts(correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result *data.DataPage, err error) GetAccountById(correlationId string, id string) (result *AccountV1, err error) GetAccountByLogin(correlationId string, login string) (result *AccountV1, err error) GetAccountByIdOrLogin(correlationId string, idOrLogin string) (result *AccountV1, err error) CreateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error) UpdateAccount(correlationId string, account *AccountV1) (result *AccountV1, err error) DeleteAccountById(correlationId string, id string) (result *AccountV1, err error) }
Click to show internal directories.
Click to hide internal directories.