Documentation
¶
Index ¶
- type FS
- func (fs FS) NoteCreate(ctx context.Context, user common.User, text string) (common.Note, error)
- func (fs FS) NoteGetLatest(ctx context.Context, user common.User) (common.Note, error)
- func (fs FS) NoteGetLatestWithTime(ctx context.Context, user common.User, t time.Duration) (common.Note, error)
- func (fs FS) NoteGetList(ctx context.Context, user common.User, page, count int) ([]common.Note, bool, error)
- func (fs FS) UserAll(ctx context.Context, user common.User) ([]common.Note, error)
- func (fs FS) UserCreate(ctx context.Context, username, plaintext, phone string) (common.User, error)
- func (fs FS) UserDel(ctx context.Context, user common.User) error
- func (fs FS) UserGet(ctx context.Context, token string) (common.User, error)
- func (fs FS) UserGetByNumber(ctx context.Context, phone string) (common.User, error)
- func (fs FS) UserGetByUsername(ctx context.Context, username string) (common.User, error)
- func (fs FS) UserLogin(ctx context.Context, username, plaintext string) (common.User, error)
- type Note
- type User
- func (user *User) ID() string
- func (user *User) Phone() string
- func (user *User) Save(ctx context.Context) error
- func (user *User) SetPass(plaintext string)
- func (user *User) SetPhone(value string)
- func (user *User) SetUsername(value string)
- func (user *User) Token() string
- func (user *User) Username() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
func (FS) NoteCreate ¶
func (FS) NoteGetLatest ¶
func (FS) NoteGetLatestWithTime ¶
func (FS) NoteGetList ¶
func (FS) UserAll ¶
func (FS) UserCreate ¶
func (FS) UserGetByNumber ¶
func (FS) UserGetByUsername ¶
type Note ¶
Click to show internal directories.
Click to hide internal directories.