mysqlimpl

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLoggerOutput1 added in v1.2.0

func SetLoggerOutput1(w io.Writer)

Types

type MySqlAPI

type MySqlAPI struct {
	DB        *sql.DB
	GithubCli *GhClient
	// contains filtered or unexported fields
}

func NewMySqlAPI

func NewMySqlAPI(username string, passwd string, address string, database string, ghCli *GhClient) (api *MySqlAPI)

func (*MySqlAPI) GetLastUpdateTime added in v1.0.0

func (api *MySqlAPI) GetLastUpdateTime() (modTime time.Time, err error)

func (*MySqlAPI) GetPluginCounts

func (api *MySqlAPI) GetPluginCounts(opt PluginListOpt) (count PluginCounts, err error)

func (*MySqlAPI) GetPluginIdList added in v1.0.0

func (api *MySqlAPI) GetPluginIdList(opt PluginListOpt) (ids []string, err error)

func (*MySqlAPI) GetPluginInfo

func (api *MySqlAPI) GetPluginInfo(id string, version string) (info *PluginInfo, err error)

TODO: query version

func (*MySqlAPI) GetPluginInfos added in v1.3.0

func (api *MySqlAPI) GetPluginInfos(id string) (infos []*PluginInfo, err error)

func (*MySqlAPI) GetPluginLastUpdateTime added in v1.0.0

func (api *MySqlAPI) GetPluginLastUpdateTime(id string) (modTime time.Time, err error)

func (*MySqlAPI) GetPluginList

func (api *MySqlAPI) GetPluginList(opt PluginListOpt) (infos []*PluginInfo, err error)

func (*MySqlAPI) GetPluginReadme

func (api *MySqlAPI) GetPluginReadme(id string) (content Content, err error)

func (*MySqlAPI) GetPluginRelease

func (api *MySqlAPI) GetPluginRelease(id string, tag Version) (release *PluginRelease, err error)

func (*MySqlAPI) GetPluginReleaseAsset

func (api *MySqlAPI) GetPluginReleaseAsset(id string, tag Version, filename string) (rc io.ReadSeekCloser, modTime time.Time, err error)

func (*MySqlAPI) GetPluginReleases

func (api *MySqlAPI) GetPluginReleases(id string) (releases []*PluginRelease, err error)

func (*MySqlAPI) QueryContext

func (api *MySqlAPI) QueryContext(ctx context.Context, cmd string, args ...any) (rows *sql.Rows, err error)

Jump to

Keyboard shortcuts

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