Documentation
¶
Index ¶
- func ErrLoginFailed(ctx context.Context) error
- func GetStaticSalt(ctx context.Context) (string, error)
- func GetTitle(ctx context.Context) string
- func Install(ctx context.Context, req *dto.InstallReq) error
- func Installed(ctx context.Context) bool
- func Login(ctx context.Context, req *dto.LoginReq) error
- func QueryPosts(ctx context.Context, req *dto.QueryPostReq) (*dto.QueryPostResp, error)
- func SetInstalled(ctx context.Context)
- func SetTitle(ctx context.Context, s string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrLoginFailed ¶
func GetStaticSalt ¶
GetStaticSalt 获取站点静态 salt 优先从缓存取,没有则查库,db 里没有就创建
func QueryPosts ¶
func QueryPosts(ctx context.Context, req *dto.QueryPostReq) (*dto.QueryPostResp, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.