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

gRPC Source Details Configured Structures

Detailed grpc source structure DialOptions DialOptions is the most important part and is responsible for configuring the selection for each rpc request. structure Let's look at this structure first link // dialOptions configure a Dial call. dialOptions are set by the DialOption // values passed to Dial. type dialOptions struct { u ...

Posted on Thu, 25 Jul 2019 09:52:54 -0700 by w4designs

Decoding of NIO Messages Based on Length Domain under Netty

1. Review the sticking/unpacking first. 1.1. The Meaning of Packing/Unpacking TCP is a "flow" protocol. It does not understand the specific meaning of the upper business data. It divides the packets according to the actual situation of the TCP buffer. So in business, it is believed that a complete package may be divided into several ...

Posted on Wed, 26 Jun 2019 10:56:49 -0700 by dgx

FFmpeg decoded audio

Based on the first article: First Decoded Video We know mp4 is a video format, actually it encapsulates the compressed data of audio, and the compressed data of video. This article will read the compressed data of audio from the video and decompress the audio The following picture is reproduced from Dr. Lei Xiaohua ppt Audio compression ...

Posted on Sun, 23 Jun 2019 09:50:16 -0700 by elfeste

Using FFmpeg to Play Android Video Recording and Compression

Reprinted from: http://blog.csdn.net/mabeijianxi/article/details/72983362 This paper deals with knowledge points: Andorid Video and Audio Acquisition YUV Video Processing (Manual Cutting, Rotation, Mirror, etc.) PCM Audio Processing Using FFmpeg API, YUV code is H264, PCM code is AAC Configuration of FFmpeg Encoder Practical Applicatio ...

Posted on Sat, 25 May 2019 16:21:16 -0700 by planetphp

A Brief Introduction to Log4j2 Using ELK

ELK introduction ELK is Logstash + Elastic Search + Kibana: Logstash is responsible for collecting logs Elastic Search is responsible for storing logs Kibana provides a Web interface to view log information Log4j2 configuration Log4j2 provides us with Socket Appender, which allows us to send logs via TCP or UDP. For more information: htt ...

Posted on Tue, 21 May 2019 15:32:49 -0700 by madspof

Broker for RocketMQ Source Analysis

Initialization BrokerController initialize() first loads four configuration files, mainly to restore the previous data. Of course, if restarted for the first time, there is no data in these four files. They mainly inherit the ConfigManager class to expand the specific file storage methods and codec methods.Initialize communic ...

Posted on Sat, 18 May 2019 17:49:39 -0700 by bryan52803

Simple Implementation of Protobuf Serialization Framework in Netty

What is protocol buffers Protobuf is a platform-independent, language-independent, scalable and efficient protocol for serialized data structures, which can be used for network communication and data storage. Introduction to Protobuf 1. Construction of development environment The latest official version of protobuf is now ...

Posted on Wed, 15 May 2019 10:54:55 -0700 by microbluechip

One of Linux Audio Drivers: Audio Driver Registration Process

This paper is a learning note based on Linux version number of mini2440 development board linux-2.6.32.2 I. Registration of uda134x Platform Equipment static struct s3c24xx_uda134x_platform_data s3c24xx_uda134x_data = { .l3_clk = S3C2410_GPB(4), .l3_data = S3C2410_GPB(3), .l3_mode = S3C2410_GPB(2), .model = UDA134X_UDA1341 ...

Posted on Fri, 10 May 2019 14:01:39 -0700 by timmah1

Nginx Learning How to Build Document Anti-theft Chain Service

Preface Everyone knows that many websites now charge for downloading information. Whether it is points or gold coins, few websites want to be free. So how do these websites achieve the anti-theft chain of resources? Nginx itself provides secure_link to complete the anti-theft chain function. It can add timestamps and check codes to the server ...

Posted on Thu, 09 May 2019 15:12:39 -0700 by neave