service

package
v0.0.0-...-11fa3e6 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrLoginFailed

func ErrLoginFailed(ctx context.Context) error

func GetStaticSalt

func GetStaticSalt(ctx context.Context) (string, error)

GetStaticSalt 获取站点静态 salt 优先从缓存取,没有则查库,db 里没有就创建

func GetTitle

func GetTitle(ctx context.Context) string

GetTitle 获取站点标题(缓存优先)

func Install

func Install(ctx context.Context, req *dto.InstallReq) error

Install 执行安装动作

func Installed

func Installed(ctx context.Context) bool

Installed 是否已经安装

func Login

func Login(ctx context.Context, req *dto.LoginReq) error

Login 执行登录检查

func QueryPosts

func QueryPosts(ctx context.Context, req *dto.QueryPostReq) (*dto.QueryPostResp, error)

func SetInstalled

func SetInstalled(ctx context.Context)

更新安装状态缓存

func SetTitle

func SetTitle(ctx context.Context, s string)

更新站点标题缓存

Types

This section is empty.

Jump to

Keyboard shortcuts

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