Processing flow of request in RGW for source code interpretation
Processing flow of request in RGW for source code interpretation
Request Processing Flowchart
Take civetweb as an example
rgw_main.cc is the entry for the entire radosgw service. The main() function selects different front-end types based on the rgw frontends parameter settings in ceph.conf, and then executes the corresponding run() method t ...
Posted by SQL Maestro on Thu, 20 Jun 2019 13:00:30 -0700
The Swift-based Enum structure belongs to the "Sum" type
Enum structure should be used by everyone. Let's take a brief look at the use of Swift.
The algebraic type is not a specific type, but a way of thinking about the original type. Sum type is a kind of algebraic type. Rational use of Sum type can greatly improve the readability of code.
Sum type
Enum in Swift is a typical Sum type, for example:e ...
Posted by Ammar on Fri, 14 Jun 2019 11:52:42 -0700
swift_035 (Kingfisher, Swift's Third Party Library)
[Rapid Learning Swift Third Party Library] Kingfisher
Kingfisher is a lightweight online photo library for downloading and caching. Downloading and caching are asynchronous operations. The downloaded images will be cached in memory and locally, which greatly improves the app experience.
(Document address: http://cocoadocs.org/docsets/Kingfi ...
Posted by sbarros on Sun, 09 Jun 2019 17:57:50 -0700
Implementation of CALayer Mask for iOS Gradual Two-Dimensional Codes
Welcome to my personal home page for sample code for this article
Preface
There is a requirement in the work that the black-and-white two-dimensional code which has been generated by the server is transformed into a gradient two-dimensional code. The specific effect is as follows.
This article will introduce how to use Mask of CALayer to rea ...
Posted by bladechob on Fri, 31 May 2019 11:56:41 -0700
IOS-RxSwift Project Practical Records
Recently, I just finished my OC project. After careful consideration, I decided to use Swift in my next project. It happened that RxSwift had been out for some time, and the grammar was basically stable. So he came to try out RxSwift, and then he made a little Demo. Interested students could have a look at it.~
structure
.
├── Co ...
Posted by fr@nkie on Sun, 26 May 2019 10:43:39 -0700
Declarative keywords in swift
origin
Learn swift, the keywords in swift, of course, to understand clearly. Recently, I saw articles on declaring keywords on the Internet, collate and record them.
A keyword is a sequence of reserved characters similar to an identifier and cannot be used as an identifier unless it is enclosed in accents (`).Keyword is a predefined reserved id ...
Posted by Grant Holmes on Sun, 26 May 2019 09:19:56 -0700
How to accurately measure iOS App startup time
Both WWDC 2016 and 2017 mentioned the principle and performance optimization idea of startup. It can be seen how important startup time is for developers and users. This article talks about how to accurately measure the startup time of App. Startup time consists of two parts: the startup time before main and the startup time after main.
T ...
Posted by pothole_89 on Wed, 22 May 2019 11:41:17 -0700
Network Reachability in Swift
The vast majority of mobile phone applications need to request data or update data from the background host or server through the network at a certain time. However, network connections are not always available, and disconnection may lead to unavailability at any time. In order to understand this problem, we can use _____________ SCNetworkReac ...
Posted by gumby51 on Fri, 17 May 2019 14:35:20 -0700
Creation and Use of CocoaPods Private Warehouse
Ahead
With the expansion of the business of the project, the company decided to open another APP, but it will use some of the public components now. It is no problem to copy the past, but there is a problem. If the public components are maintained in the future, there will not be many APPs to modify, so it is though ...
Posted by rodin on Tue, 14 May 2019 08:43:49 -0700
iOS crash log collection
iOS crash log collection
Developing an APP user experience may seem very important. Think about how uncomfortable it is that an APP always flies away and bug s keep popping up. Users will definitely uninstall it directly. So in order to develop more robust programs, we have roughly the following methods:
Fully consider the differences betwe ...
Posted by vierme on Fri, 19 Apr 2019 11:00:32 -0700