caddy & grpc adds a reverse proxy plug-in for caddy

caddy-grpc adds a reverse proxy plug-in for caddy Project address: https://github.com/yhyddr/caddy-grpc Preface Last time we learned how to extend the plug-in we wanted in Caddy. Blogs provide only a general framework. This time, let's learn from the specific plug-in caddy-grpc. The reason for choosing it is that it is a stand-alone applicati ...

Posted on Sat, 10 Aug 2019 03:36:53 -0700 by Edison

Go gcache Source Analysis (Diagram)

Summary gcache is a concurrently secure local cache library implemented with go.It can do the following: Specify the size of the cache and set the size for the cache at initialization. Strategies to support multiple caches: Simple, LRU, LFU, ARC Simple: The most common caching strategy, based on first-in first-out. LUR: Least Recently Used, ...

Posted on Wed, 07 Aug 2019 09:12:43 -0700 by Iklekid

go learning notebook workspace

After setting up the basic environment of Go, we can now officially start the learning journey of Go language. At the beginning of school, it is suggested to write code in the default GOPATH workspace specification. The basic directory structure is like this. . |-- bin | `-- hello.exe |-- pkg | `-- ...

Posted on Fri, 02 Aug 2019 04:12:16 -0700 by Blue Blood

Go RWMutex Source Learning

Summary Last article We looked at the implementation of the mutex lock. But if business logic reads more and writes less, if mutexes are used every time it reads and writes, the overall efficiency will become very low. In fact, mutexes are not needed to lock data if it is read only. Mutual exclusion is required only for write operations, but wr ...

Posted on Wed, 31 Jul 2019 21:25:12 -0700 by konn

Go Mutex Source Learning

Summary Mutex is a simple and easy-to-use mutex provided by go language. Mutex is the main means of access control for shared resources in concurrent programs. The structure of Mutex is very simple. There are only two ways to expose it. One is to lock and the other is to unlock it. So how do we implement Mutex mutex exclusion locks that we use ...

Posted on Wed, 31 Jul 2019 02:35:55 -0700 by ataria

(golang learning) 3. Thread, co-process understanding

Processes, threads, collaboration differences ============= a. Their respective characteristics Reference< Detailed description of the differences between processes, threads and processes> Process: It has its own independent stack and stack. It neither shares the stack nor shares the stack. The process is scheduled by the operating syste ...

Posted on Tue, 30 Jul 2019 17:28:55 -0700 by tryin_to_learn

Docker volume speed up npm install

The previous section decided to use Docker as the build environment in Jenkins, so that we could compile our project for all kinds of node versions we wanted. The problem of version switching is solved. However, Docker is designed for a clean execution environment, so every time a docker container is run, it is equivalent to a new system, so th ...

Posted on Fri, 26 Jul 2019 01:48:59 -0700 by meir4u

Design of Data Log Component Similar to csv

Links to the original text: https://blog.thinkeridea.com/... Our business needs to record a large number of log data every day, and these data are very important. They are the main basis for company revenue settlement and the main data source for data analysis department. For such an important log, and high-frequency log, we need a high-perform ...

Posted on Sat, 20 Jul 2019 21:41:53 -0700 by chillininvt

Free, Open Source Digital Currency Receiving Plug-in

Although block chains are booming, it is still very difficult for programmers to support digital money collection on their websites. Both Bitcoin and eos need to install full-node software in order to achieve more stable query and collection services. However, at present, all nodes of block chain consume a lot of hard disk space and system reso ...

Posted on Thu, 20 Jun 2019 19:10:12 -0700 by flashicon

minikube Code Analysis and Go Language-3

[TOC] minikube Code Analysis Reference Blog: minikube source code analysis download minikube source code You can download from github: git clone git@github.com:kubernetes/minikube.git Compile Environment: Ubuntu 16.04 # Download the code to any directory, here is / opt/kube/minikube > export GOPATH=~/gol/ # Set the GOPATH environment vari ...

Posted on Sat, 15 Jun 2019 17:16:28 -0700 by mhodgson