event

package
v0.0.0-...-cc63be1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package event ...

Description : event ...

Author : [email protected]<白茶清欢>

Date : 2023-02-24 22:38

Package event ...

Description : event ...

Author : [email protected]<白茶清欢>

Date : 2023-03-07 15:20

Package event ...

Description : event ...

Author : [email protected]<白茶清欢>

Date : 2023-02-24 22:32

Index

Constants

View Source
const (
	// TypeAppCreate 应用创建
	TypeAppCreate = "APP_CREATE"
	// TypeAppModify 应用修改
	TypeAppModify = "APP_MODIFY"
	// TypeAppChangeStatus 应用状态变更
	TypeAppChangeStatus = "APP_CHANGE_STATUS"

	// TypeProjectCreate 创建项目
	TypeProjectCreate = "PROJECT_CREATE"
	// TypeProjectModify 项目修改
	TypeProjectModify = "PROJECT_MODIFY"
	// TypeProjectChangeStatus 项目状态变化
	TypeProjectChangeStatus = "PROJECT_CHANGE_STATUS"

	// TypeProjectApiCreate 创建项目接口
	TypeProjectApiCreate = "PROJECT_API_CREATE"
	// TypeProjectApiModify 修改项目接口
	TypeProjectApiModify = "PROJECT_API_MODIFY"
	// TypeProjectApiChangeStatus 变更项目接口状态
	TypeProjectApiChangeStatus = "PROJECT_API_CHANGE_STATUS"

	// TypeProjectApiParamCreate 创建项目接口参数
	TypeProjectApiParamCreate = "PROJECT_API_PARAM_CREATE"
	// TypeProjectApiParamModify 修改项目接口参数
	TypeProjectApiParamModify = "PROJECT_API_PARAM_MODIFY"
	// TypeProjectApiParamChangeStatus 变更项目接口参数状态
	TypeProjectApiParamChangeStatus = "PROJECT_API_PARAM_CHANGE_STATUS"

	// TypeProjectApiResultCreate 创建项目接口返回值
	TypeProjectApiResultCreate = "PROJECT_API_RESULT_CREATE"
	// TypeProjectApiResultModify 修改项目接口返回值
	TypeProjectApiResultModify = "PROJECT_API_RESULT_MODIFY"
	// TypeProjectApiResultChangeStatus 变更项目接口返回值状态
	TypeProjectApiResultChangeStatus = "PROJECT_API_RESULT_CHANGE_STATUS"

	// TypeGatewayApiCreate 创建网关接口
	TypeGatewayApiCreate = "GATEWAY_API_CREATE"
	// TypeGatewayApiModify 修改网关接口
	TypeGatewayApiModify = "GATEWAY_API_MODIFY"
	// TypeGatewayApiChangeStatus 变更网关接口状态
	TypeGatewayApiChangeStatus = "GATEWAY_API_CHANGE_STATUS"

	// TypeGatewayApiParamCreate 创建网关参数
	TypeGatewayApiParamCreate = "GATEWAY_API_PARAM_CREATE"
	// TypeGatewayApiParamModify 修改网关参数
	TypeGatewayApiParamModify = "GATEWAY_API_PARAM_MODIFY"
	// TypeGatewayApiParamChangeStatus 变更网关参数状态
	TypeGatewayApiParamChangeStatus = "GATEWAY_API_PARAM_CHANGE_STATUS"

	// TypeGatewayApiResultCreate 创建网关返回值
	TypeGatewayApiResultCreate = "GATEWAY_API_RESULT_CREATE"
	// TypeGatewayApiResultModify 修改网关返回值
	TypeGatewayApiResultModify = "GATEWAY_API_RESULT_MODIFY"
	// TypeGatewayApiResultChangeStatus 变更网关返回值状态
	TypeGatewayApiResultChangeStatus = "GATEWAY_API_RESULT_CHANGE_STATUS"

	// TypeSchemeCreate scheme创建
	TypeSchemeCreate = "SCHEME_CREATE"
	// TypeSchemeModify scheme修改
	TypeSchemeModify = "SCHEME_MODIFY"
	// TypeSchemeChangeStatus scheme修改状态
	TypeSchemeChangeStatus = "SCHEME_CHANGE_STATUS"

	// TypeMethodCreate 创建方法
	TypeMethodCreate = "METHOD_CREATE"
	// TypeMethodModify 修改方法
	TypeMethodModify = "METHOD_MODIFY"
	// TypeMethodChangeStatus 修改状态
	TypeMethodChangeStatus = "METHOD_CHANGE_STATUS"

	// TypeContentTypeCreate 创建content_type
	TypeContentTypeCreate = "CONTENT_TYPE_CREATE"
	// TypeContentTypeModify 修改content_type
	TypeContentTypeModify = "CONTENT_TYPE_MODIFY"
	// TypeContentTypeChangeStatus 变更content_type状态
	TypeContentTypeChangeStatus = "CONTENT_TYPE_CHANGE_STATUS"

	// TypeAppApiPermissionCreate 创建权限
	TypeAppApiPermissionCreate = "APP_API_PERMISSION_CREATE"
	// TypeAppApiPermissionModify 修改权限
	TypeAppApiPermissionModify = "APP_API_PERMISSION_MODIFY"
	// TypeAppApiPermissionDelete 删除权限
	TypeAppApiPermissionDelete = "APP_API_PERMISSION_DELETE"
)
View Source
const (
	// WatchCoreChangeKeyPrefix 监听核心数据变更的key前缀
	WatchCoreChangeKeyPrefix = "/gateway/core/change/notice/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppChangeStatus

type AppChangeStatus struct {
	AppCode string `json:"flag"`   // 应用code
	Before  int    `json:"before"` // 修改前状态
	After   int    `json:"after"`  // 修改后状态
}

AppChangeStatus ...

Author : [email protected]<白茶清欢>

Date : 15:21 2023/3/7

type CoreDataChangeMessage

type CoreDataChangeMessage struct {
	EventType string      `json:"event_type"` // 事件类型
	TraceID   string      `json:"trace_id"`   // 事件追踪ID
	Host      string      `json:"host"`       // 触发事件host
	Timestamp int64       `json:"timestamp"`  // 触发时间,纳秒级时间戳
	Data      interface{} `json:"data"`       // 发送的数据
}

CoreDataChangeMessage 数据变更的数据结构

Author : [email protected]<白茶清欢>

Date : 22:38 2023/2/24

type DataChangeStatus

type DataChangeStatus struct {
	ID     int64 `json:"id"`     // 数据主键ID
	Before int   `json:"before"` // 变更前状态
	After  int   `json:"after"`  // 变更后状态
}

DataChangeStatus 网关接口变更状态

Author : [email protected]<白茶清欢>

Date : 20:54 2023/3/7

type DeleteAppApiPermission

type DeleteAppApiPermission struct {
	AppID        int64 `json:"app_id"`
	GatewayApiID int64 `json:"gateway_api_id"`
}

DeleteAppApiPermission 删除应用接口权限

Author : [email protected]<白茶清欢>

Date : 17:50 2023/3/16

type ProjectChangeStatus

type ProjectChangeStatus struct {
	Flag   string `json:"flag"`   // 项目标识
	Before int    `json:"before"` // 修改前状态
	After  int    `json:"after"`  // 修改后状态
}

ProjectChangeStatus 改变项目状态

Author : [email protected]<白茶清欢>

Date : 22:39 2023/2/24

Jump to

Keyboard shortcuts

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