user

package
v0.0.0-...-07f0968 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activate

type Activate struct {
	Me   ID     `json:"me"`
	Code string `json:"code"`
}

func (*Activate) Do

func (a *Activate) Do(c *app.Client) error

func (*Activate) MustDo

func (a *Activate) MustDo(c *app.Client)

func (*Activate) Path

func (_ *Activate) Path() string

type ChangeEmail

type ChangeEmail struct {
	NewEmail string `json:"newEmail"`
}

func (*ChangeEmail) Do

func (a *ChangeEmail) Do(c *app.Client) error

func (*ChangeEmail) MustDo

func (a *ChangeEmail) MustDo(c *app.Client)

func (*ChangeEmail) Path

func (_ *ChangeEmail) Path() string

type ConfirmChangeEmail

type ConfirmChangeEmail struct {
	Me   ID     `json:"me"`
	Code string `json:"code"`
}

func (*ConfirmChangeEmail) Do

func (a *ConfirmChangeEmail) Do(c *app.Client) error

func (*ConfirmChangeEmail) MustDo

func (a *ConfirmChangeEmail) MustDo(c *app.Client)

func (*ConfirmChangeEmail) Path

func (_ *ConfirmChangeEmail) Path() string

type Delete

type Delete struct {
	Pwd string `json:"pwd"`
}

func (*Delete) Do

func (a *Delete) Do(c *app.Client) error

func (*Delete) MustDo

func (a *Delete) MustDo(c *app.Client)

func (*Delete) Path

func (_ *Delete) Path() string

type Get

type Get struct {
	Users IDs `json:"users"`
}

func (*Get) Do

func (a *Get) Do(c *app.Client) ([]*User, error)

func (*Get) MustDo

func (a *Get) MustDo(c *app.Client) []*User

func (*Get) Path

func (_ *Get) Path() string

type GetAvatar

type GetAvatar struct {
	User ID `json:"user"`
}

func (*GetAvatar) Do

func (a *GetAvatar) Do(c *app.Client) (*app.DownStream, error)

func (*GetAvatar) MustDo

func (a *GetAvatar) MustDo(c *app.Client) *app.DownStream

func (*GetAvatar) Path

func (_ *GetAvatar) Path() string

type GetJin

type GetJin struct{}

func (*GetJin) Do

func (a *GetJin) Do(c *app.Client) (*json.Json, error)

func (*GetJin) MustDo

func (a *GetJin) MustDo(c *app.Client) *json.Json

func (*GetJin) Path

func (_ *GetJin) Path() string

type GetMe

type GetMe struct{}

func (*GetMe) Do

func (a *GetMe) Do(c *app.Client) (*Me, error)

func (*GetMe) MustDo

func (a *GetMe) MustDo(c *app.Client) *Me

func (*GetMe) Path

func (_ *GetMe) Path() string

type Login

type Login struct {
	Email string `json:"email"`
	Pwd   string `json:"pwd"`
}

func (*Login) Do

func (a *Login) Do(c *app.Client) (*Me, error)

func (*Login) MustDo

func (a *Login) MustDo(c *app.Client) *Me

func (*Login) Path

func (_ *Login) Path() string

type LoginLinkLogin

type LoginLinkLogin struct {
	Me   ID     `json:"me"`
	Code string `json:"code"`
}

func (*LoginLinkLogin) Do

func (a *LoginLinkLogin) Do(c *app.Client) (*Me, error)

func (*LoginLinkLogin) MustDo

func (a *LoginLinkLogin) MustDo(c *app.Client) *Me

func (*LoginLinkLogin) Path

func (_ *LoginLinkLogin) Path() string

type Logout

type Logout struct{}

func (*Logout) Do

func (a *Logout) Do(c *app.Client) error

func (*Logout) MustDo

func (a *Logout) MustDo(c *app.Client)

func (*Logout) Path

func (_ *Logout) Path() string

type Me

type Me struct {
	User
	FcmEnabled *bool `json:"fcmEnabled,omitempty"`
}

type Register

type Register struct {
	Alias  *string `json:"alias,omitempty"`
	Handle *string `json:"handle,omitempty"`
	Email  string  `json:"email"`
	Pwd    string  `json:"pwd"`
}

func (*Register) Do

func (a *Register) Do(c *app.Client) error

func (*Register) MustDo

func (a *Register) MustDo(c *app.Client)

func (*Register) Path

func (_ *Register) Path() string

type RegisterForFCM

type RegisterForFCM struct {
	Topic  IDs    `json:"topic"`
	Client *ID    `json:"client"`
	Token  string `json:"token"`
}

func (*RegisterForFCM) Do

func (a *RegisterForFCM) Do(c *app.Client) (*ID, error)

func (*RegisterForFCM) MustDo

func (a *RegisterForFCM) MustDo(c *app.Client) *ID

func (*RegisterForFCM) Path

func (_ *RegisterForFCM) Path() string
type ResendActivateLink struct {
	Email string `json:"email"`
}

func (*ResendActivateLink) Do

func (a *ResendActivateLink) Do(c *app.Client) error

func (*ResendActivateLink) MustDo

func (a *ResendActivateLink) MustDo(c *app.Client)

func (*ResendActivateLink) Path

func (_ *ResendActivateLink) Path() string
type ResendChangeEmailLink struct{}

func (*ResendChangeEmailLink) Do

func (*ResendChangeEmailLink) MustDo

func (a *ResendChangeEmailLink) MustDo(c *app.Client)

func (*ResendChangeEmailLink) Path

func (_ *ResendChangeEmailLink) Path() string

type ResetPwd

type ResetPwd struct {
	Email string `json:"email"`
}

func (*ResetPwd) Do

func (a *ResetPwd) Do(c *app.Client) error

func (*ResetPwd) MustDo

func (a *ResetPwd) MustDo(c *app.Client)

func (*ResetPwd) Path

func (_ *ResetPwd) Path() string

type SendLoginLinkEmail

type SendLoginLinkEmail struct {
	Email string `json:"email"`
}

func (*SendLoginLinkEmail) Do

func (a *SendLoginLinkEmail) Do(c *app.Client) error

func (*SendLoginLinkEmail) MustDo

func (a *SendLoginLinkEmail) MustDo(c *app.Client)

func (*SendLoginLinkEmail) Path

func (_ *SendLoginLinkEmail) Path() string

type SetAlias

type SetAlias struct {
	Alias *string `json:"alias"`
}

func (*SetAlias) Do

func (a *SetAlias) Do(c *app.Client) error

func (*SetAlias) MustDo

func (a *SetAlias) MustDo(c *app.Client)

func (*SetAlias) Path

func (_ *SetAlias) Path() string

type SetAvatar

type SetAvatar struct {
	Avatar io.ReadCloser
}

func (*SetAvatar) Do

func (a *SetAvatar) Do(c *app.Client) error

func (*SetAvatar) MustDo

func (a *SetAvatar) MustDo(c *app.Client)

func (*SetAvatar) Path

func (_ *SetAvatar) Path() string

type SetFCMEnabled

type SetFCMEnabled struct {
	Val bool `json:"val"`
}

func (*SetFCMEnabled) Do

func (a *SetFCMEnabled) Do(c *app.Client) error

func (*SetFCMEnabled) MustDo

func (a *SetFCMEnabled) MustDo(c *app.Client)

func (*SetFCMEnabled) Path

func (_ *SetFCMEnabled) Path() string

type SetHandle

type SetHandle struct {
	Handle string `json:"handle"`
}

func (*SetHandle) Do

func (a *SetHandle) Do(c *app.Client) error

func (*SetHandle) MustDo

func (a *SetHandle) MustDo(c *app.Client)

func (*SetHandle) Path

func (_ *SetHandle) Path() string

type SetJin

type SetJin struct {
	Val *json.Json `json:"val"`
}

func (*SetJin) Do

func (a *SetJin) Do(c *app.Client) error

func (*SetJin) MustDo

func (a *SetJin) MustDo(c *app.Client)

func (*SetJin) Path

func (_ *SetJin) Path() string

type SetPwd

type SetPwd struct {
	OldPwd string `json:"oldPwd"`
	NewPwd string `json:"newPwd"`
}

func (*SetPwd) Do

func (a *SetPwd) Do(c *app.Client) error

func (*SetPwd) MustDo

func (a *SetPwd) MustDo(c *app.Client)

func (*SetPwd) Path

func (_ *SetPwd) Path() string

type UnregisterFromFCM

type UnregisterFromFCM struct {
	Client ID `json:"client"`
}

func (*UnregisterFromFCM) Do

func (a *UnregisterFromFCM) Do(c *app.Client) error

func (*UnregisterFromFCM) MustDo

func (a *UnregisterFromFCM) MustDo(c *app.Client)

func (*UnregisterFromFCM) Path

func (_ *UnregisterFromFCM) Path() string

type User

type User struct {
	ID        ID      `json:"id"`
	Handle    *string `json:"handle,omitempty"`
	Alias     *string `json:"alias,omitempty"`
	HasAvatar *bool   `json:"hasAvatar,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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