西维蜀黍

【Mattermost】webhook

Incoming Webhooks

Mattermost supports webhooks to easily integrate external applications into the server.

Use incoming webhooks to post messages to Mattermost public channels, private channels and direct messages. Messages are sent via an HTTP POST request to a Mattermost URL generated for each application and contain a specifically formatted JSON payload in the request body.

  ...


【ELK】ELK(Elasticsearch+Logstash+Kibana)学习

日志服务

日志服务是我们应用程序后端不可或缺的一个组件,通常我们会组合使用 ELK(Elasticsearch+Logstash+Kibana)技术栈来自行搭建一个日志存储和分析系统。

  ...


【Lucene】Lucene 语法

Kibana使用的查询语法是Lucene的查询语法。

  ...


【MySQL】将执行结果输出到文件

Approach 1

mysql> select count(1) from table  into outfile '/tmp/test.log';

Query OK, 31 rows affected (0.00 sec)

在目录/tmp/下会产生文件test.xlog

遇到的问题:

mysql> select count(1) from table into outfile '/tmp/test.log';
ERROR 1 (HY000): Can't create/write to file '/tmp/test.log' (Errcode: 13)

原因:mysql User没有向/tmp/下写的权限。

  ...


【Golang】通过私有库安装依赖

Situation

公司一个 Golang 的项目,使用到了公司的私有仓库,去执行go mod tidy(下载依赖)的时候,到download公司私有库的时候就报错,报错信息也不明显,只是提示找不到影响版本unkown revision。

  ...