An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.2% on proxy.golang.org
Top 4.8% dependent repos on proxy.golang.org

proxy.golang.org : github.com/phonkee/go-classy

Api provides simple functions that return registrar. The api is fairly simple and can be used in many different ways. Example: Support for class based views. Inspired by django class based views. Every structure can be view when it provides needed methods. Classy has som pre built configured base views, so you don't need to create one. They are built with rest principles in mind. Design of classy is that you can provide mapping from http methods to view methods. Classy then registers views to gorilla mux router. Classy uses reflection quite a lot, but the advantage is that it's used only during registration to router. During the run of server it doesn't affects speed and performance Classy has also support for "ViewSet" as we know them from django rest framework, so you can combine list/detail view in single struct. Example: Let's create users list class based view. We will use predefined ListView. registrar provides object that handles all the registration. It is also used as shorthands in top level api. All interfaces used in classy module

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/phonkee/go-classy
License: MIT
Latest release: over 8 years ago
First release: over 8 years ago
Namespace: github.com/phonkee
Dependent repositories: 1
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...