admin

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package admin @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Package admin @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdminAction

func RegisterAdminAction(i IAdminAction)

func RegisterAdminConfig

func RegisterAdminConfig(i IAdminConfig)

Types

type IAdminAction

type IAdminAction interface {
	AddOptAction()            //计算用户登录次数
	AddRequestAction()        //计算请求服务接口次数
	GetOptAction() uint64     //获取用户登录次数
	GetRequestAction() uint64 //获取请求服务接口次数
}

func AdminAction

func AdminAction() IAdminAction

type IAdminConfig

type IAdminConfig interface {
	OnConfig(ctx context.Context) (err error)        //初始化[插件模块参数]配置信息
	CacheModuleYaml(ctx context.Context) (err error) //初始化[缓存模块]参数配置信息
}

func AdminConfig

func AdminConfig() IAdminConfig

Jump to

Keyboard shortcuts

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