diff --git a/app/README.md b/app/README.md new file mode 100644 index 00000000..059a177f --- /dev/null +++ b/app/README.md @@ -0,0 +1 @@ +# 测试用应用 diff --git a/app/apis/manu.http.json b/app/apis/manu.http.json new file mode 100644 index 00000000..ee8cc4b5 --- /dev/null +++ b/app/apis/manu.http.json @@ -0,0 +1,8 @@ +{ + "name": "厂商接口", + "version": "1.0.0", + "description": "厂商API", + "group": "manu", + "guard": "bearer-jwt", + "paths": [] +} diff --git a/app/apis/user.http.json b/app/apis/user.http.json new file mode 100644 index 00000000..c8dade36 --- /dev/null +++ b/app/apis/user.http.json @@ -0,0 +1,30 @@ +{ + "name": "用户接口", + "version": "1.0.0", + "description": "用户API", + "group": "user", + "guard": "bearer-jwt", + "paths": [ + { + "path": "/login", + "method": "POST", + "guard": "-", + "process": "plugins.user.Login", + "in": ["$payload.mobile", "$payload.password", "$payload.captcha"], + "out": { + "status": 200, + "type": "application/json" + } + }, + { + "path": "/info/:id", + "method": "GET", + "process": "models.user.Find", + "in": ["$param.id", ":params"], + "out": { + "status": 200, + "type": "application/json" + } + } + ] +} diff --git a/app/flows/latest.count.js b/app/flows/latest.count.js new file mode 100644 index 00000000..90d1d3d0 --- /dev/null +++ b/app/flows/latest.count.js @@ -0,0 +1,6 @@ +function main(args, out, res) { + return { + args: args, + plugin: res.github.name, + }; +} diff --git a/app/flows/latest.flow.json b/app/flows/latest.flow.json new file mode 100644 index 00000000..a2197fce --- /dev/null +++ b/app/flows/latest.flow.json @@ -0,0 +1,73 @@ +{ + "label": "最新信息", + "version": "1.0.0", + "description": "最新信息", + "nodes": [ + { + "name": "manus", + "process": "models.manu.get", + "args": [ + { + "select": ["id", "name", "short_name"], + "limit": 20, + "orders": [{ "column": "created_at", "option": "desc" }], + "wheres": [ + { "column": "status", "value": "enabled" }, + { "column": "name", "value": "{{$in.0}}", "op": "like" } + ] + } + ], + "script": "rank", + "outs": ["{{$out.manus}}", "{{$out.manu_ids}}"] + }, + { + "name": "users", + "process": "models.user.paginate", + "args": [ + { + "select": ["id", "name", "extra", "resume"], + "withs": { + "manu": { "query": { "select": ["name", "short_name"] } }, + "addresses": { + "query": { "select": ["province", "city", "location"] } + } + }, + "orders": [{ "column": "created_at", "option": "desc" }], + "wheres": [ + { "column": "status", "value": "enabled" }, + { "column": "manu_id", "value": "{{$res.manus.1}}", "op": "in" } + ] + }, + 1, + 20 + ], + "outs": ["{{$out.data}}"] + }, + { + "name": "github", + "process": "plugins.user.github", + "args": [ + "{{$res.users.0}}", + "{{$res.manus}}", + "{{$in.0}}", + "{{$in.1}}", + "{{$in.2}}", + "{{pluck(:$res.users, 'id', 0.618, 10)}}", + "foo", + 1 + ] + }, + { + "name": "count", + "script": "count" + } + ], + "output": { + "params": "{{$in}}", + "data": { + "manus": "{{$res.manus.0}}", + "users": "{{$res.users.0}}", + "count": "{{$res.count}}" + } + } +} diff --git a/app/flows/latest.rank.js b/app/flows/latest.rank.js new file mode 100644 index 00000000..eef2ba7f --- /dev/null +++ b/app/flows/latest.rank.js @@ -0,0 +1,18 @@ +// 结果集处理脚本 +function main(args, manus, data) { + // 解析厂商ID + var manu_ids = []; + for (var i in manus) { + var id = manus[i].id; + if (id) { + manu_ids.push(id); + } + } + + // 处理返回结果 + var res = { + manus: manus, + manu_ids: manu_ids, + }; + return res; +} diff --git a/app/models/address.json b/app/models/address.json new file mode 100644 index 00000000..fde1bd5b --- /dev/null +++ b/app/models/address.json @@ -0,0 +1,79 @@ +{ + "name": "地址", + "table": { + "name": "address", + "comment": "地址表", + "engine": "InnoDB" + }, + "columns": [ + { "name": "id", "type": "ID" }, + { + "label": "用户", + "name": "user_id", + "type": "bigInteger", + "comment": "所属用户", + "index": true + }, + { + "label": "省份", + "name": "province", + "type": "string", + "length": 200, + "comment": "省份", + "index": true + }, + { + "label": "城市", + "name": "city", + "type": "string", + "length": 200, + "comment": "城市", + "index": true + }, + { + "label": "地址", + "name": "location", + "type": "string", + "length": 400, + "comment": "详细地址", + "index": true + }, + { + "label": "状态", + "name": "status", + "type": "enum", + "default": "enabled", + "option": ["enabled", "disabled"], + "comment": "状态 enabled 开启, disabled 关闭", + "index": true + } + ], + "relations": {}, + "option": { "timestamps": true, "soft_deletes": true }, + "values": [ + { + "user_id": 1, + "province": "北京市", + "city": "丰台区", + "location": "银海星月9号楼9单元9层1024室" + }, + { + "user_id": 1, + "province": "北京市", + "city": "丰台区", + "location": "北京国家数字出版基地A103" + }, + { + "user_id": 2, + "province": "北京市", + "city": "海淀区", + "location": "华严北里7号楼7单元7层2048室" + }, + { + "user_id": 3, + "province": "山东省", + "city": "威海市", + "location": "威海市6号楼6单元6层1056室" + } + ] +} diff --git a/app/models/friends.json b/app/models/friends.json new file mode 100644 index 00000000..b56fd5ca --- /dev/null +++ b/app/models/friends.json @@ -0,0 +1,62 @@ +{ + "name": "好友", + "table": { + "name": "friends", + "comment": "好友关系表", + "engine": "InnoDB" + }, + "columns": [ + { "name": "id", "type": "ID" }, + { + "label": "用户ID", + "name": "user_id", + "type": "bigInteger", + "comment": "所属用户", + "index": true + }, + { + "label": "好友用户ID", + "name": "friend_id", + "type": "bigInteger", + "comment": "好友用户ID", + "index": true + }, + { + "label": "类型", + "name": "type", + "type": "enum", + "default": "monther", + "option": ["monther", "father", "friend"], + "comment": "类型 monther 母亲, father 父亲, friend 朋友", + "index": true + }, + { + "label": "状态", + "name": "status", + "type": "enum", + "default": "enabled", + "option": ["enabled", "disabled"], + "comment": "状态 enabled 开启, disabled 关闭", + "index": true + } + ], + "relations": {}, + "option": { "timestamps": true, "soft_deletes": true }, + "values": [ + { + "user_id": 1, + "friend_id": 2, + "type": "monther" + }, + { + "user_id": 1, + "friend_id": 3, + "type": "father" + }, + { + "user_id": 2, + "friend_id": 3, + "type": "friend" + } + ] +} diff --git a/app/models/manu.json b/app/models/manu.json new file mode 100644 index 00000000..a04069ad --- /dev/null +++ b/app/models/manu.json @@ -0,0 +1,113 @@ +{ + "name": "厂商", + "table": { + "name": "manu", + "comment": "厂商表", + "engine": "InnoDB" + }, + "columns": [ + { "name": "id", "type": "ID" }, + { + "label": "名称", + "name": "name", + "type": "string", + "length": 200, + "comment": "全称", + "unique": true + }, + { + "label": "简称", + "name": "short_name", + "type": "string", + "length": 200, + "comment": "简称", + "index": true + }, + { + "label": "类型", + "name": "type", + "type": "enum", + "option": ["服务商", "采购商", "其他"], + "comment": "厂商类型 服务商, 采购商, 其他", + "default": "服务商", + "index": true + }, + { + "label": "LOGO", + "name": "logo", + "type": "string", + "length": 200, + "comment": "LOGO", + "nullable": true + }, + { + "label": "简介", + "name": "summary", + "type": "string", + "length": 600, + "comment": "简介", + "nullable": true, + "index": true + }, + { + "label": "官网", + "name": "link", + "type": "string", + "length": 200, + "comment": "官网地址", + "nullable": true + }, + { + "label": "联系人", + "name": "contact_name", + "type": "string", + "length": 200, + "comment": "联系人", + "nullable": true, + "index": true + }, + { + "label": "联系电话", + "name": "contact_mobile", + "type": "string", + "comment": "联系电话", + "nullable": true, + "index": true + }, + { + "label": "详情", + "name": "desc", + "type": "text", + "comment": "介绍", + "nullable": true + }, + { + "label": "排序", + "name": "rank", + "type": "integer", + "default": 9999999, + "comment": "查询排序" + }, + { + "label": "状态", + "name": "status", + "type": "enum", + "default": "enabled", + "option": ["enabled", "disabled"], + "comment": "状态 enabled 开启, disabled 关闭", + "index": true + } + ], + "relations": {}, + "option": { "timestamps": true, "soft_deletes": true }, + "values": [ + { "name": "北京云道天成科技有限公司", "short_name": "云道天成" }, + { "name": "象传高新(北京)数字科技有限公司", "short_name": "象传高新" }, + { "name": "象传智数(北京)软件科技有限公司", "short_name": "象传智数" }, + { "name": "象传智慧(北京)软件科技有限公司", "short_name": "象传智慧" }, + { "name": "象传数据服务引擎", "short_name": "服务引擎" }, + { "name": "象传数据应用开发平台", "short_name": "应用开发平台" }, + { "name": "象传数据解决方案", "short_name": "解决方案" }, + { "name": "象传数据企业服务", "short_name": "企业服务" } + ] +} diff --git a/app/models/role.json b/app/models/role.json new file mode 100644 index 00000000..2ca7aa9a --- /dev/null +++ b/app/models/role.json @@ -0,0 +1,70 @@ +{ + "name": "角色", + "table": { + "name": "role", + "comment": "角色表", + "engine": "InnoDB" + }, + "columns": [ + { "name": "id", "type": "ID" }, + { + "label": "名称", + "name": "name", + "type": "string", + "length": 200, + "comment": "名称", + "index": true + }, + { + "label": "标签", + "name": "label", + "type": "string", + "length": 200, + "comment": "标签", + "index": true + }, + { + "label": "权限", + "name": "permission", + "type": "JSON", + "comment": "权限" + }, + { + "label": "状态", + "name": "status", + "type": "enum", + "default": "enabled", + "option": ["enabled", "disabled"], + "comment": "状态 enabled 开启, disabled 关闭", + "index": true + } + ], + "relations": {}, + "option": { "timestamps": true, "soft_deletes": true }, + "values": [ + { + "label": "超级管理员", + "name": "admin", + "status": "enabled", + "permission": { "read": ["t1", "t2", "t3"] } + }, + { + "label": "编辑", + "name": "editor", + "status": "enabled", + "permission": { "read": ["t1", "t2", "t3"] } + }, + { + "label": "用户", + "name": "user", + "status": "enabled", + "permission": { "read": ["t1", "t2", "t3"] } + }, + { + "label": "访客", + "name": "any", + "status": "disabled", + "permission": { "read": ["t1", "t2", "t3"] } + } + ] +} diff --git a/app/models/user.json b/app/models/user.json new file mode 100644 index 00000000..96c8d8a6 --- /dev/null +++ b/app/models/user.json @@ -0,0 +1,396 @@ +{ + "name": "用户", + "table": { + "name": "user", + "comment": "用户表", + "engine": "InnoDB" + }, + "columns": [ + { "label": "ID", "name": "id", "type": "ID" }, + { + "label": "厂商", + "name": "manu_id", + "type": "bigInteger", + "length": 50, + "comment": "所属厂商", + "nullable": true, + "index": true, + "validations": [ + { + "method": "typeof", + "args": ["integer"], + "message": "{{input}}类型错误, {{label}}应为数字" + }, + { + "method": "min", + "args": [0], + "message": "{{label}}应大于0" + } + ] + }, + { + "label": "类型", + "name": "type", + "type": "enum", + "option": ["admin", "staff", "user"], + "comment": "账号类型 admin 管理员, staff 员工, user 用户", + "default": "staff", + "index": true, + "validations": [ + { + "method": "typeof", + "args": ["string"], + "message": "{{input}}类型错误, {{label}}应该为字符串" + }, + { + "method": "enum", + "args": ["admin", "staff", "user"], + "message": "{{input}}不在许可范围, {{label}}应该为 admin/staff/user" + } + ] + }, + { + "label": "手机号", + "name": "mobile", + "type": "string", + "length": 50, + "comment": "手机号", + "index": true, + "crypt": "AES", + "validations": [ + { + "method": "typeof", + "args": ["string"], + "message": "{{input}}类型错误, {{label}}应该为字符串" + }, + { + "method": "pattern", + "args": ["^1[3-9]\\d{9}$"], + "message": "{{input}}格式错误" + } + ] + }, + { + "label": "登录密码", + "name": "password", + "type": "string", + "length": 256, + "comment": "登录密码", + "crypt": "PASSWORD", + "index": true, + "validations": [ + { + "method": "typeof", + "args": ["string"], + "message": "{{input}}类型错误, {{label}}应该为字符串" + }, + { + "method": "minLength", + "args": [6], + "message": "{{label}}应该由6-18位,大小写字母、数字和符号构成" + }, + { + "method": "maxLength", + "args": [18], + "message": "{{label}}应该由6-18位,大小写字母、数字和符号构成" + }, + { + "method": "pattern", + "args": ["[0-9]+"], + "message": "{{label}}应该至少包含一个数字" + }, + { + "method": "pattern", + "args": ["[A-Z]+"], + "message": "{{label}}应该至少包含一个大写字母" + }, + { + "method": "pattern", + "args": ["[a-z]+"], + "message": "{{label}}应该至少包含一个小写字母" + }, + { + "method": "pattern", + "args": ["[@#$&*]+"], + "message": "{{label}}应该至少包含一个符号" + } + ] + }, + { + "label": "姓名", + "name": "name", + "type": "string", + "length": 80, + "comment": "姓名", + "index": true, + "validations": [ + { + "method": "typeof", + "args": ["string"], + "message": "{{input}}类型错误, {{label}}应该为字符串" + }, + { + "method": "minLength", + "args": [2], + "message": "{{label}}至少需要2个字" + }, + { + "method": "maxLength", + "args": [40], + "message": "{{label}}不能超过20个字" + } + ] + }, + { + "label": "身份证号码", + "name": "idcard", + "type": "string", + "length": 256, + "comment": "身份证号码", + "crypt": "AES", + "nullable": true, + "index": true, + "validations": [ + { + "method": "typeof", + "args": ["string"], + "message": "{{input}}类型错误, {{label}}应该为字符串" + }, + { + "method": "pattern", + "args": ["^(\\d{18})|(\\d{14}X)$"], + "message": "{{label}}格式错误" + } + ] + }, + { + "label": "账户余额", + "name": "balance", + "type": "integer", + "length": 20, + "comment": "账户余额(冗余)", + "default": 0, + "index": true, + "validations": [ + { + "method": "typeof", + "args": ["integer"], + "message": "{{input}}类型错误, {{label}}应为数字" + }, + { + "method": "min", + "args": [0], + "message": "{{label}}应大于0" + } + ] + }, + { + "label": "API Key", + "name": "key", + "type": "string", + "length": 256, + "comment": "API Key", + "nullable": true, + "unique": true, + "validations": [ + { + "method": "typeof", + "args": ["string"], + "message": "{{input}}类型错误, {{label}}应该为字符串" + }, + { + "method": "pattern", + "args": ["^[0-9A-Za-z@#$&*]{8}$"], + "message": " {{label}}应该由8位,大小写字母、数字和符号构成" + } + ] + }, + { + "label": "API 密钥", + "name": "secret", + "type": "string", + "length": 256, + "nullable": true, + "crypt": "AES", + "comment": "API 密钥", + "index": true, + "validations": [ + { + "method": "typeof", + "args": ["string"], + "message": "{{input}}类型错误, {{label}}应该为字符串" + }, + { + "method": "pattern", + "args": ["^[0-9A-Za-z@#$&*]{32}$"], + "message": "{{label}}应该由32位,大小写字母、数字和符号构成" + } + ] + }, + { + "label": "简历", + "name": "resume", + "type": "text", + "comment": "简历", + "nullable": true + }, + { + "label": "扩展信息", + "name": "extra", + "type": "json", + "comment": "扩展信息", + "nullable": true + }, + { + "label": "状态", + "comment": "用户状态 enabled 有效, disabled 无效", + "name": "status", + "type": "enum", + "default": "enabled", + "option": ["enabled", "disabled"], + "index": true, + "validations": [ + { + "method": "typeof", + "args": ["string"], + "message": "{{input}}类型错误, {{label}}应该为字符串" + }, + { + "method": "enum", + "args": ["enabled", "disabled"], + "message": "{{input}}不在许可范围, {{label}}应该为 enabled/disabled" + } + ] + } + ], + "relations": { + "manu": { + "type": "hasOne", + "model": "manu", + "key": "id", + "foreign": "manu_id", + "select": ["name", "short_name", "type"] + }, + "addresses": { + "type": "hasMany", + "model": "address", + "key": "user_id", + "foreign": "id", + "query": { + "select": ["province", "city", "location", "status"], + "pagesize": 20 + } + }, + "mother": { + "type": "hasOneThrough", + "links": [ + { + "type": "hasOne", + "model": "friends", + "key": "user_id", + "foreign": "user.id", + "query": { + "select": ["status", "type", "friend_id"], + "wheres": [ + { + "column": "type", + "value": "monther" + } + ] + } + }, + { + "type": "hasOne", + "model": "user", + "key": "id", + "foreign": "user_mother_friends.friend_id", + "query": { + "select": ["name", "id", "status", "type", "secret", "extra"], + "withs": { + "manu": { "name": "manu" }, + "roles": { "name": "roles" }, + "address": { "name": "address" } + } + } + } + ] + }, + "roles": { + "type": "hasManyThrough", + "links": [ + { + "type": "hasMany", + "model": "user_roles", + "key": "user_id", + "foreign": "id", + "query": { + "select": ["status"], + "pagesize": 20 + } + }, + { + "type": "hasOne", + "model": "role", + "key": "id", + "foreign": "role_id", + "query": { + "select": ["name", "label", "permission"] + } + } + ] + } + }, + "values": [ + { + "name": "管理员", + "manu_id": 1, + "type": "admin", + "idcard": "230624198301170015", + "mobile": "13900001111", + "password": "cvSK@RY6", + "key": "FB3fxCeQ", + "secret": "XMTdNRVigbgUiAPdiJCfaWgWcz2PaQXw", + "status": "enabled", + "extra": { "sex": "男" } + }, + { + "name": "员工", + "manu_id": 1, + "type": "staff", + "idcard": "23082619820207024X", + "mobile": "13900002222", + "password": "qV@uT1DI", + "key": "JDh2ZiUt", + "secret": "wBeYjL7FjbcvpAdBrxtDFfjydsoPKhRN", + "status": "enabled", + "extra": { "sex": "女" } + }, + { + "name": "用户", + "manu_id": 2, + "type": "user", + "idcard": "23082619820207004X", + "mobile": "13900003333", + "password": "qV@uT1DI", + "key": "XZ12MiPz", + "secret": "wBeYjL7FjbcvpAdBrxtDFfjydsoPKhRN", + "status": "enabled", + "extra": { "sex": "女" } + } + ], + "indexes": [ + { + "comment": "厂商用户", + "name": "manu_id_mobile_unique", + "columns": ["manu_id", "mobile"], + "type": "unique" + }, + { + "comment": "简历全文检索", + "name": "resume_fulltext", + "columns": ["resume"], + "type": "fulltext" + } + ], + "option": { "timestamps": true, "soft_deletes": true } +} diff --git a/app/models/user_roles.json b/app/models/user_roles.json new file mode 100644 index 00000000..10a57c42 --- /dev/null +++ b/app/models/user_roles.json @@ -0,0 +1,43 @@ +{ + "name": "用户角色", + "table": { + "name": "user_roles", + "comment": "用户角色关系表", + "engine": "InnoDB" + }, + "columns": [ + { "name": "id", "type": "ID" }, + { + "label": "用户ID", + "name": "user_id", + "type": "bigInteger", + "comment": "所属用户", + "index": true + }, + { + "label": "角色ID", + "name": "role_id", + "type": "bigInteger", + "comment": "角色ID", + "index": true + }, + { + "label": "状态", + "name": "status", + "type": "enum", + "default": "enabled", + "option": ["enabled", "disabled"], + "comment": "状态 enabled 开启, disabled 关闭", + "index": true + } + ], + "relations": {}, + "option": { "timestamps": true, "soft_deletes": true }, + "values": [ + { "user_id": 1, "role_id": 1 }, + { "user_id": 1, "role_id": 2 }, + { "user_id": 2, "role_id": 3 }, + { "user_id": 2, "role_id": 4 }, + { "user_id": 3, "role_id": 1 } + ] +} diff --git a/app/plugins/Makefile b/app/plugins/Makefile new file mode 100644 index 00000000..3134af36 --- /dev/null +++ b/app/plugins/Makefile @@ -0,0 +1,8 @@ +all: clean plugin + +plugin: + go build -o ./dist/user ./user + chmod +x ./dist/user + +clean: + rm -rf ./dist \ No newline at end of file diff --git a/app/plugins/dist/user b/app/plugins/dist/user new file mode 100755 index 00000000..6b8f856a Binary files /dev/null and b/app/plugins/dist/user differ diff --git a/app/plugins/python/README.md b/app/plugins/python/README.md new file mode 100644 index 00000000..65a0ef8e --- /dev/null +++ b/app/plugins/python/README.md @@ -0,0 +1 @@ +# Python 插件 diff --git a/app/plugins/user/README.md b/app/plugins/user/README.md new file mode 100644 index 00000000..1fbe0cb4 --- /dev/null +++ b/app/plugins/user/README.md @@ -0,0 +1 @@ +# Golang 插件 diff --git a/app/plugins/user/user.go b/app/plugins/user/user.go new file mode 100644 index 00000000..3dceb1ee --- /dev/null +++ b/app/plugins/user/user.go @@ -0,0 +1,42 @@ +package main + +import ( + "encoding/json" + "io" + "os" + "path" + + "github.com/yaoapp/kun/grpc" + "github.com/yaoapp/kun/maps" +) + +// user Here is a real implementation of plugin that writes to a local file with +// the key name and the contents are the value of the key. +type user struct{ grpc.Plugin } + +// Exec 读取 +func (user *user) Exec(name string, args ...interface{}) (*grpc.Response, error) { + user.Logger.Debug("message from user.Exec") + v := maps.MakeMap() + v.Set("name", name) + v.Set("args", args) + bytes, err := json.Marshal(v) + if err != nil { + return nil, err + } + return &grpc.Response{Bytes: bytes, Type: "map"}, nil +} + +func main() { + var output io.Writer = os.Stderr + var logroot = os.Getenv("GOU_TEST_PLG_LOG") + if logroot != "" { + logfile, err := os.Create(path.Join(logroot, "user.log")) + if err == nil { + output = logfile + } + } + plugin := &user{} + plugin.SetLogger(output, grpc.Trace) + grpc.Serve(plugin) +} diff --git a/config.go b/config.go new file mode 100644 index 00000000..bfa8e6d4 --- /dev/null +++ b/config.go @@ -0,0 +1,3 @@ +package main + +// 读取配置 diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..b233647c --- /dev/null +++ b/go.mod @@ -0,0 +1,12 @@ +module github.com/yaoapp/xiang + +go 1.16 + +require ( + github.com/TylerBrock/colorjson v0.0.0-20200706003622-8a50f05110d2 // indirect + github.com/hashicorp/go-hclog v0.16.2 // indirect + github.com/hashicorp/go-plugin v1.4.2 // indirect + github.com/json-iterator/go v1.1.11 // indirect + github.com/yaoapp/kun v0.6.1 + golang.org/x/sys v0.0.0-20210903071746-97244b99971b // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..182010ff --- /dev/null +++ b/go.sum @@ -0,0 +1,199 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/TylerBrock/colorjson v0.0.0-20200706003622-8a50f05110d2 h1:ZBbLwSJqkHBuFDA6DUhhse0IGJ7T5bemHyNILUjvOq4= +github.com/TylerBrock/colorjson v0.0.0-20200706003622-8a50f05110d2/go.mod h1:VSw57q4QFiWDbRnjdX8Cb3Ow0SFncRw+bA/ofY6Q83w= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.12.0 h1:mRhaKNwANqRgUBGKmnI5ZxEk7QXmjQeCcuYFMX2bfcc= +github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v0.16.2 h1:K4ev2ib4LdQETX5cSZBG0DVLk1jwGqSPXBjdah3veNs= +github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-plugin v1.4.2 h1:yFvG3ufXXpqiMiZx9HLcaK3XbIqQ1WJFR/F1a2CuVw0= +github.com/hashicorp/go-plugin v1.4.2/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= +github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/hashicorp/yamux v0.0.0-20210707203944-259a57b3608c h1:nqkErwUGfpZZMqj29WZ9U/wz2OpJVDuiokLhE/3Y7IQ= +github.com/hashicorp/yamux v0.0.0-20210707203944-259a57b3608c/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hokaccha/go-prettyjson v0.0.0-20210113012101-fb4e108d2519/go.mod h1:pFlLw2CfqZiIBOx6BuCeRLCrfxBJipTY0nIOF/VbGcI= +github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74= +github.com/json-iterator/go v1.1.11 h1:uVUAXhF2To8cbw/3xN3pxj6kk7TYKs98NIrTqPlMWAQ= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8= +github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.13 h1:qdl+GuBjcsKKDco5BsxPJlId98mSWNKqYA+Co0SC1yA= +github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= +github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= +github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/yaoapp/kun v0.6.1 h1:gbjP5wmAuJLe1RGZ2evH4rPCVWykf0iqbksaHikF/GI= +github.com/yaoapp/kun v0.6.1/go.mod h1:igsTcWDnzpp0HtRN7sBP+XOEN2tzoC5hk2MyoPFs3xA= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d h1:LO7XpTYMwTqxjLcGWPijK3vRXg1aWdlNOVOHRq45d7c= +golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210903071746-97244b99971b h1:3Dq0eVHn0uaQJmPO+/aYPI/fRMqdrVDbu7MQcku54gg= +golang.org/x/sys v0.0.0-20210903071746-97244b99971b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20170818010345-ee236bd376b0/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8 h1:XosVttQUxX8erNhEruTu053/VchgYuksoS9Bj/OITjU= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.40.0 h1:AGJ0Ih4mHjSeibYkFGh1dD9KJ/eOtZ93I6hoHhukQ5Q= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/hot.go b/hot.go new file mode 100644 index 00000000..06ab7d0f --- /dev/null +++ b/hot.go @@ -0,0 +1 @@ +package main diff --git a/service.go b/service.go new file mode 100644 index 00000000..564da7e8 --- /dev/null +++ b/service.go @@ -0,0 +1,3 @@ +package main + +// 服务设定 diff --git a/xiang.go b/xiang.go new file mode 100644 index 00000000..3086acf7 --- /dev/null +++ b/xiang.go @@ -0,0 +1,8 @@ +package main + +import "github.com/yaoapp/kun/utils" + +// 主程序 +func main() { + utils.Dump("象传应用引擎") +} diff --git a/xiang/apis/README.md b/xiang/apis/README.md new file mode 100644 index 00000000..3aa76a2d --- /dev/null +++ b/xiang/apis/README.md @@ -0,0 +1 @@ +# API 接口 diff --git a/xiang/flows/README.md b/xiang/flows/README.md new file mode 100644 index 00000000..caf30e47 --- /dev/null +++ b/xiang/flows/README.md @@ -0,0 +1 @@ +# 工作流 diff --git a/xiang/models/README.md b/xiang/models/README.md new file mode 100644 index 00000000..3fa06638 --- /dev/null +++ b/xiang/models/README.md @@ -0,0 +1 @@ +# 数据模型