Documentation
¶
Index ¶
- type Access
- func (a *Access) AccessList(ctx context.Context, req *api.AccessListRequest) (*api.AccessListResponse, error)
- func (a *Access) AddGroupAccess(ctx context.Context, req *api.AddGroupAccessRequest) (*api.AddGroupAccessResponse, error)
- func (a *Access) AddUserAccess(ctx context.Context, req *api.AddUserAccessRequest) (*api.AddUserAccessResponse, error)
- func (a *Access) DeleteAccess(ctx context.Context, req *api.DeleteAccessRequest) (*api.DeleteAccessResponse, error)
- func (a *Access) Router(r *mux.Router)
- func (a *Access) UpdateAccess(ctx context.Context, req *api.UpdateAccessRequest) (*api.UpdateAccessResponse, error)
- type AccessInvite
- func (a *AccessInvite) AcceptInvite(ctx context.Context, req *api.AcceptInviteRequest) (*api.AcceptInviteResponse, error)
- func (a *AccessInvite) AuditInviteCode(ctx context.Context, req *api.AuditInviteCodeRequest) (*api.AuditInviteCodeResponse, error)
- func (a *AccessInvite) CreateGroupInviteCode(ctx context.Context, req *api.CreateGroupInviteCodeRequest) (*api.CreateGroupInviteCodeResponse, error)
- func (a *AccessInvite) CreateInviteCode(ctx context.Context, req *api.CreateInviteCodeRequest) (*api.CreateInviteCodeResponse, error)
- func (a *AccessInvite) DeleteInviteCode(ctx context.Context, req *api.DeleteInviteCodeRequest) (*api.DeleteInviteCodeResponse, error)
- func (a *AccessInvite) GroupInviteCodeList(ctx context.Context, req *api.GroupInviteCodeListRequest) (*api.GroupInviteCodeListResponse, error)
- func (a *AccessInvite) InviteCodeInfo(ctx context.Context, req *api.InviteCodeInfoRequest) (*api.InviteCodeInfoResponse, error)
- func (a *AccessInvite) InviteCodeList(ctx context.Context, req *api.InviteCodeListRequest) (*api.InviteCodeListResponse, error)
- func (a *AccessInvite) Router(r *mux.Router)
- type Group
- func (g *Group) AddMember(ctx context.Context, req *api.AddMemberRequest) (*api.AddMemberResponse, error)
- func (g *Group) CreateGroup(ctx context.Context, req *api.CreateGroupRequest) (*api.CreateGroupResponse, error)
- func (g *Group) DeleteGroup(ctx context.Context, req *api.DeleteGroupRequest) (*api.DeleteGroupResponse, error)
- func (g *Group) GroupList(ctx context.Context, req *api.GroupListRequest) (*api.GroupListResponse, error)
- func (g *Group) GroupMemberList(ctx context.Context, req *api.GroupMemberListRequest) (*api.GroupMemberListResponse, error)
- func (g *Group) RemoveMember(ctx context.Context, req *api.RemoveMemberRequest) (*api.RemoveMemberResponse, error)
- func (g *Group) Router(r *mux.Router)
- func (g *Group) UpdateGroup(ctx context.Context, req *api.UpdateGroupRequest) (*api.UpdateGroupResponse, error)
- func (g *Group) UpdateMember(ctx context.Context, req *api.UpdateMemberRequest) (*api.UpdateMemberResponse, error)
- type Score
- func (s *Score) DelScore(ctx context.Context, req *api.DelScoreRequest) (*api.DelScoreResponse, error)
- func (s *Score) PutScore(ctx context.Context, req *api.PutScoreRequest) (*api.PutScoreResponse, error)
- func (s *Score) Router(r *mux.Router)
- func (s *Score) ScoreList(ctx context.Context, req *api.ScoreListRequest) (*api.ScoreListResponse, error)
- func (s *Score) SelfScore(ctx context.Context, req *api.SelfScoreRequest) (*api.SelfScoreResponse, error)
- type Script
- func (s *Script) Archive(ctx context.Context, req *api.ArchiveRequest) (*api.ArchiveResponse, error)
- func (s *Script) Code(ctx context.Context, req *api.CodeRequest) (*api.CodeResponse, error)
- func (s *Script) Create(ctx context.Context, req *api.CreateRequest) (*api.CreateResponse, error)
- func (s *Script) Delete(ctx context.Context, req *api.DeleteRequest) (*api.DeleteResponse, error)
- func (s *Script) DeleteCode(ctx context.Context, req *api.DeleteCodeRequest) (*api.DeleteCodeResponse, error)
- func (s *Script) Download(pre bool) gin.HandlerFunc
- func (s *Script) DownloadLib() gin.HandlerFunc
- func (s *Script) GetSetting(ctx context.Context, req *api.GetSettingRequest) (*api.GetSettingResponse, error)
- func (s *Script) Info(ctx *gin.Context, req *api.InfoRequest) (*api.InfoResponse, error)
- func (s *Script) LastScore(ctx context.Context, req *api.LastScoreRequest) (*api.LastScoreResponse, error)
- func (s *Script) List(ctx context.Context, req *api.ListRequest) (*api.ListResponse, error)
- func (s *Script) MigrateEs(ctx context.Context, req *api.MigrateEsRequest) (*api.MigrateEsResponse, error)
- func (s *Script) Router(root *mux.Router, r *mux.Router)
- func (s *Script) State(ctx context.Context, req *api.StateRequest) (*api.StateResponse, error)
- func (s *Script) UpdateCode(ctx context.Context, req *api.UpdateCodeRequest) (*api.UpdateCodeResponse, error)
- func (s *Script) UpdateCodeSetting(ctx context.Context, req *api.UpdateCodeSettingRequest) (*api.UpdateCodeSettingResponse, error)
- func (s *Script) UpdateLibInfo(ctx context.Context, req *api.UpdateLibInfoRequest) (*api.UpdateLibInfoResponse, error)
- func (s *Script) UpdateScriptGray(ctx context.Context, req *api.UpdateScriptGrayRequest) (*api.UpdateScriptGrayResponse, error)
- func (s *Script) UpdateScriptPublic(ctx context.Context, req *api.UpdateScriptPublicRequest) (*api.UpdateScriptPublicResponse, error)
- func (s *Script) UpdateScriptUnwell(ctx context.Context, req *api.UpdateScriptUnwellRequest) (*api.UpdateScriptUnwellResponse, error)
- func (s *Script) UpdateSetting(ctx context.Context, req *api.UpdateSettingRequest) (*api.UpdateSettingResponse, error)
- func (s *Script) UpdateSyncSetting(ctx context.Context, req *api.UpdateSyncSettingRequest) (*api.UpdateSyncSettingResponse, error)
- func (s *Script) VersionCode(ctx context.Context, req *api.VersionCodeRequest) (*api.VersionCodeResponse, error)
- func (s *Script) VersionList(ctx context.Context, req *api.VersionListRequest) (*api.VersionListResponse, error)
- func (s *Script) Watch(ctx context.Context, req *api.WatchRequest) (*api.WatchResponse, error)
- func (s *Script) Webhook(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct { }
func (*Access) AccessList ¶
func (a *Access) AccessList(ctx context.Context, req *api.AccessListRequest) (*api.AccessListResponse, error)
AccessList 访问控制列表
func (*Access) AddGroupAccess ¶
func (a *Access) AddGroupAccess(ctx context.Context, req *api.AddGroupAccessRequest) (*api.AddGroupAccessResponse, error)
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) 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 ¶
func (a *AccessInvite) AcceptInvite(ctx context.Context, req *api.AcceptInviteRequest) (*api.AcceptInviteResponse, error)
AcceptInvite 接受邀请
func (*AccessInvite) AuditInviteCode ¶
func (a *AccessInvite) AuditInviteCode(ctx context.Context, req *api.AuditInviteCodeRequest) (*api.AuditInviteCodeResponse, error)
AuditInviteCode 审核邀请码
func (*AccessInvite) CreateGroupInviteCode ¶
func (a *AccessInvite) CreateGroupInviteCode(ctx context.Context, req *api.CreateGroupInviteCodeRequest) (*api.CreateGroupInviteCodeResponse, error)
CreateGroupInviteCode 创建群组邀请码
func (*AccessInvite) CreateInviteCode ¶
func (a *AccessInvite) CreateInviteCode(ctx context.Context, req *api.CreateInviteCodeRequest) (*api.CreateInviteCodeResponse, error)
CreateInviteCode 创建邀请码
func (*AccessInvite) DeleteInviteCode ¶
func (a *AccessInvite) DeleteInviteCode(ctx context.Context, req *api.DeleteInviteCodeRequest) (*api.DeleteInviteCodeResponse, error)
DeleteInviteCode 删除邀请码
func (*AccessInvite) GroupInviteCodeList ¶
func (a *AccessInvite) GroupInviteCodeList(ctx context.Context, req *api.GroupInviteCodeListRequest) (*api.GroupInviteCodeListResponse, error)
GroupInviteCodeList 群组邀请码列表
func (*AccessInvite) InviteCodeInfo ¶
func (a *AccessInvite) InviteCodeInfo(ctx context.Context, req *api.InviteCodeInfoRequest) (*api.InviteCodeInfoResponse, error)
InviteCodeInfo 邀请码信息
func (*AccessInvite) InviteCodeList ¶
func (a *AccessInvite) InviteCodeList(ctx context.Context, req *api.InviteCodeListRequest) (*api.InviteCodeListResponse, error)
InviteCodeList 邀请码列表
func (*AccessInvite) Router ¶
func (a *AccessInvite) Router(r *mux.Router)
type Group ¶
type Group struct { }
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) 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 (*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) 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 (*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) 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) 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 ¶
func (s *Script) UpdateCodeSetting(ctx context.Context, req *api.UpdateCodeSettingRequest) (*api.UpdateCodeSettingResponse, error)
UpdateCodeSetting 更新脚本设置
func (*Script) UpdateLibInfo ¶
func (s *Script) UpdateLibInfo(ctx context.Context, req *api.UpdateLibInfoRequest) (*api.UpdateLibInfoResponse, error)
UpdateLibInfo 更新库信息
func (*Script) UpdateScriptGray ¶
func (s *Script) UpdateScriptGray(ctx context.Context, req *api.UpdateScriptGrayRequest) (*api.UpdateScriptGrayResponse, error)
UpdateScriptGray 更新脚本灰度策略
func (*Script) UpdateScriptPublic ¶
func (s *Script) UpdateScriptPublic(ctx context.Context, req *api.UpdateScriptPublicRequest) (*api.UpdateScriptPublicResponse, error)
UpdateScriptPublic 更新脚本公开类型
func (*Script) UpdateScriptUnwell ¶
func (s *Script) UpdateScriptUnwell(ctx context.Context, req *api.UpdateScriptUnwellRequest) (*api.UpdateScriptUnwellResponse, error)
UpdateScriptUnwell 更新脚本不适内容
func (*Script) UpdateSetting ¶
func (s *Script) UpdateSetting(ctx context.Context, req *api.UpdateSettingRequest) (*api.UpdateSettingResponse, error)
UpdateSetting 更新脚本设置
func (*Script) UpdateSyncSetting ¶
func (s *Script) UpdateSyncSetting(ctx context.Context, req *api.UpdateSyncSettingRequest) (*api.UpdateSyncSettingResponse, error)
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 关注脚本