script_ctr

package
v1.0.1-0...-a3844e9 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
}

func NewAccess

func NewAccess() *Access

func (*Access) AccessList

func (a *Access) AccessList(ctx context.Context, req *api.AccessListRequest) (*api.AccessListResponse, error)

AccessList 访问控制列表

func (*Access) AddGroupAccess

AddGroupAccess 添加组权限

func (*Access) AddUserAccess

func (a *Access) AddUserAccess(ctx context.Context, req *api.AddUserAccessRequest) (*api.AddUserAccessResponse, error)

AddUserAccess 添加用户权限, 通过用户名进行邀请

func (*Access) DeleteAccess

func (a *Access) DeleteAccess(ctx context.Context, req *api.DeleteAccessRequest) (*api.DeleteAccessResponse, error)

DeleteAccess 删除访问控制

func (*Access) Router

func (a *Access) Router(r *mux.Router)

func (*Access) UpdateAccess

func (a *Access) UpdateAccess(ctx context.Context, req *api.UpdateAccessRequest) (*api.UpdateAccessResponse, error)

UpdateAccess 更新访问控制

type AccessInvite

type AccessInvite struct {
}

func NewAccessInvite

func NewAccessInvite() *AccessInvite

func (*AccessInvite) AcceptInvite

AcceptInvite 接受邀请

func (*AccessInvite) AuditInviteCode

AuditInviteCode 审核邀请码

func (*AccessInvite) CreateGroupInviteCode

CreateGroupInviteCode 创建群组邀请码

func (*AccessInvite) CreateInviteCode

CreateInviteCode 创建邀请码

func (*AccessInvite) DeleteInviteCode

DeleteInviteCode 删除邀请码

func (*AccessInvite) GroupInviteCodeList

GroupInviteCodeList 群组邀请码列表

func (*AccessInvite) InviteCodeInfo

InviteCodeInfo 邀请码信息

func (*AccessInvite) InviteCodeList

InviteCodeList 邀请码列表

func (*AccessInvite) Router

func (a *AccessInvite) Router(r *mux.Router)

type Group

type Group struct {
}

func NewGroup

func NewGroup() *Group

func (*Group) AddMember

func (g *Group) AddMember(ctx context.Context, req *api.AddMemberRequest) (*api.AddMemberResponse, error)

AddMember 添加成员

func (*Group) CreateGroup

func (g *Group) CreateGroup(ctx context.Context, req *api.CreateGroupRequest) (*api.CreateGroupResponse, error)

CreateGroup 创建群组

func (*Group) DeleteGroup

func (g *Group) DeleteGroup(ctx context.Context, req *api.DeleteGroupRequest) (*api.DeleteGroupResponse, error)

DeleteGroup 删除群组

func (*Group) GroupList

func (g *Group) GroupList(ctx context.Context, req *api.GroupListRequest) (*api.GroupListResponse, error)

GroupList 群组列表

func (*Group) GroupMemberList

func (g *Group) GroupMemberList(ctx context.Context, req *api.GroupMemberListRequest) (*api.GroupMemberListResponse, error)

GroupMemberList 群组成员列表

func (*Group) RemoveMember

func (g *Group) RemoveMember(ctx context.Context, req *api.RemoveMemberRequest) (*api.RemoveMemberResponse, error)

RemoveMember 移除成员

func (*Group) Router

func (g *Group) Router(r *mux.Router)

func (*Group) UpdateGroup

func (g *Group) UpdateGroup(ctx context.Context, req *api.UpdateGroupRequest) (*api.UpdateGroupResponse, error)

UpdateGroup 更新群组

func (*Group) UpdateMember

func (g *Group) UpdateMember(ctx context.Context, req *api.UpdateMemberRequest) (*api.UpdateMemberResponse, error)

UpdateMember 更新成员

type Score

type Score struct {
}

func NewScore

func NewScore() *Score

func (*Score) DelScore

func (s *Score) DelScore(ctx context.Context, req *api.DelScoreRequest) (*api.DelScoreResponse, error)

DelScore 用于删除脚本的评价,注意,只有管理员才有权限删除评价

func (*Score) PutScore

func (s *Score) PutScore(ctx context.Context, req *api.PutScoreRequest) (*api.PutScoreResponse, error)

PutScore 脚本评分

func (*Score) Router

func (s *Score) Router(r *mux.Router)

func (*Score) ScoreList

func (s *Score) ScoreList(ctx context.Context, req *api.ScoreListRequest) (*api.ScoreListResponse, error)

ScoreList 获取脚本评分列表

func (*Score) SelfScore

func (s *Score) SelfScore(ctx context.Context, req *api.SelfScoreRequest) (*api.SelfScoreResponse, error)

SelfScore 用于获取自己对脚本的评价

type Script

type Script struct {
	// contains filtered or unexported fields
}

func NewScript

func NewScript() *Script

func (*Script) Archive

func (s *Script) Archive(ctx context.Context, req *api.ArchiveRequest) (*api.ArchiveResponse, error)

Archive 归档脚本

func (*Script) Code

func (s *Script) Code(ctx context.Context, req *api.CodeRequest) (*api.CodeResponse, error)

Code 获取脚本代码

func (*Script) Create

func (s *Script) Create(ctx context.Context, req *api.CreateRequest) (*api.CreateResponse, error)

Create 创建脚本/库

func (*Script) Delete

func (s *Script) Delete(ctx context.Context, req *api.DeleteRequest) (*api.DeleteResponse, error)

Delete 删除脚本

func (*Script) DeleteCode

func (s *Script) DeleteCode(ctx context.Context, req *api.DeleteCodeRequest) (*api.DeleteCodeResponse, error)

DeleteCode 删除脚本/库代码

func (*Script) Download

func (s *Script) Download(pre bool) gin.HandlerFunc

func (*Script) DownloadLib

func (s *Script) DownloadLib() gin.HandlerFunc

func (*Script) GetSetting

func (s *Script) GetSetting(ctx context.Context, req *api.GetSettingRequest) (*api.GetSettingResponse, error)

GetSetting 获取脚本设置

func (*Script) Info

func (s *Script) Info(ctx *gin.Context, req *api.InfoRequest) (*api.InfoResponse, error)

Info 获取脚本信息

func (*Script) LastScore

func (s *Script) LastScore(ctx context.Context, req *api.LastScoreRequest) (*api.LastScoreResponse, error)

LastScore 最新评分脚本

func (*Script) List

func (s *Script) List(ctx context.Context, req *api.ListRequest) (*api.ListResponse, error)

List 获取脚本列表

func (*Script) MigrateEs

func (s *Script) MigrateEs(ctx context.Context, req *api.MigrateEsRequest) (*api.MigrateEsResponse, error)

MigrateEs 全量迁移数据到es

func (*Script) Router

func (s *Script) Router(root *mux.Router, r *mux.Router)

func (*Script) State

func (s *Script) State(ctx context.Context, req *api.StateRequest) (*api.StateResponse, error)

State 获取脚本状态,脚本关注等

func (*Script) UpdateCode

func (s *Script) UpdateCode(ctx context.Context, req *api.UpdateCodeRequest) (*api.UpdateCodeResponse, error)

UpdateCode 更新脚本/库代码

func (*Script) UpdateCodeSetting

UpdateCodeSetting 更新脚本设置

func (*Script) UpdateLibInfo

func (s *Script) UpdateLibInfo(ctx context.Context, req *api.UpdateLibInfoRequest) (*api.UpdateLibInfoResponse, error)

UpdateLibInfo 更新库信息

func (*Script) UpdateScriptGray

UpdateScriptGray 更新脚本灰度策略

func (*Script) UpdateScriptPublic

UpdateScriptPublic 更新脚本公开类型

func (*Script) UpdateScriptUnwell

UpdateScriptUnwell 更新脚本不适内容

func (*Script) UpdateSetting

func (s *Script) UpdateSetting(ctx context.Context, req *api.UpdateSettingRequest) (*api.UpdateSettingResponse, error)

UpdateSetting 更新脚本设置

func (*Script) UpdateSyncSetting

UpdateSyncSetting 更新同步配置

func (*Script) VersionCode

func (s *Script) VersionCode(ctx context.Context, req *api.VersionCodeRequest) (*api.VersionCodeResponse, error)

VersionCode 获取指定版本代码

func (*Script) VersionList

func (s *Script) VersionList(ctx context.Context, req *api.VersionListRequest) (*api.VersionListResponse, error)

VersionList 获取版本列表

func (*Script) Watch

func (s *Script) Watch(ctx context.Context, req *api.WatchRequest) (*api.WatchResponse, error)

Watch 关注脚本

func (*Script) Webhook

func (s *Script) Webhook(ctx *gin.Context)

Webhook 处理webhook请求

Jump to

Keyboard shortcuts

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