Ecosyste.ms: Packages
An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.
Top 0.8% dependent packages on proxy.golang.org
Top 0.9% dependent repos on proxy.golang.org
Top 2.6% forks on proxy.golang.org
Top 1.4% docker downloads on proxy.golang.org
proxy.golang.org : capnproto.org/go/capnp/v3
Package capnp is a Cap'n Proto library for Go. https://capnproto.org/ Read the Getting Started guide for a tutorial on how to use this package. https://github.com/capnproto/go-capnproto2/wiki/Getting-Started capnpc-go provides the compiler backend for capnp. capnpc-go requires two annotations for all files: package and import. package is needed to know what package to place at the head of the generated file and what identifier to use when referring to the type from another package. import should be the fully qualified import path and is used to generate import statement from other packages and to detect when two types are in the same package. For example: For adding documentation comments to the generated code, there's the doc annotation. This annotation adds the comment to a struct, enum or field so that godoc will pick it up. For example: In Cap'n Proto, the unit of communication is a message. A message consists of one or more segments -- contiguous blocks of memory. This allows large messages to be split up and loaded independently or lazily. Typically you will use one segment per message. Logically, a message is organized in a tree of objects, with the root always being a struct (as opposed to a list or primitive). Messages can be read from and written to a stream. The Message and Segment types are the main types that application code will use from this package. The Message type has methods for marshaling and unmarshaling its segments to the wire format. If the application needs to read or write from a stream, it should use the Encoder and Decoder types. The type for a generic reference to a Cap'n Proto object is Ptr. A Ptr can refer to a struct, a list, or an interface. Ptr, Struct, List, and Interface (the pointer types) have value semantics and refer to data in a single segment. All of the pointer types have a notion of "valid". An invalid pointer will return the default value from any accessor and panic when any setter is called. In previous versions of this package, the Pointer interface was used instead of the Ptr struct. This interface and functions that use it are now deprecated. See https://github.com/capnproto/go-capnproto2/wiki/New-Ptr-Type for details about this API change. Data accessors and setters (i.e. struct primitive fields and list elements) do not return errors, but pointer accessors and setters do. There are a few reasons that a read or write of a pointer can fail, but the most common are bad pointers or allocation failures. For accessors, an invalid object will be returned in case of an error. Since Go doesn't have generics, wrapper types provide type safety on lists. This package provides lists of basic types, and capnpc-go generates list wrappers for named types. However, if you need to use deeper nesting of lists (e.g. List(List(UInt8))), you will need to use a PointerList and wrap the elements. For the following schema: capnpc-go will generate: For each group a typedef is created with a different method set for just the groups fields: generates the following: That way the following may be used to access a field in a group: Note that group accessors just convert the type and so have no overhead. Named unions are treated as a group with an inner unnamed union. Unnamed unions generate an enum Type_Which and a corresponding Which() function: generates the following: Which() should be checked before using the getters, and the default case must always be handled. Setters for single values will set the union discriminator as well as set the value. For voids in unions, there is a void setter that just sets the discriminator. For example: generates the following: Similarly, for groups in unions, there is a group setter that just sets the discriminator. This must be called before the group getter can be used to set values. For example: and in usage: capnpc-go generates enum values as constants. For example in the capnp file: In the generated capnp.go file: In addition an enum.String() function is generated that will convert the constants to a string for debugging or logging purposes. By default, the enum name is used as the tag value, but the tags can be customized with a $Go.tag or $Go.notag annotation. For example: In the generated go file: capnpc-go generates type-safe Client wrappers for interfaces. For parameter lists and result lists, structs are generated as described above with the names Interface_method_Params and Interface_method_Results, unless a single struct type is used. For example, for this interface: capnpc-go generates the following Go code (along with the structs Calculator_evaluate_Params and Calculator_evaluate_Results): capnpc-go also generates code to implement the interface: Since a single capability may want to implement many interfaces, you can use multiple *_Methods functions to build a single slice to send to NewServer. An example of combining the client/server code to communicate with a locally implemented Calculator: A note about message ordering: by default, only one method per server will be invoked at a time; when implementing a server method which blocks or takes a long time, you calling the server.Go function to unblock future calls.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/capnproto.org/go/capnp/v3
Keywords: capabilities, capability-based, capn-proto, capnp, capnproto, go, golang, object-capabilities, rpc, serialization
License: MIT
Latest release: about 1 year ago
First release: about 3 years ago
Namespace: capnproto.org/go/capnp
Dependent packages: 68
Dependent repositories: 42
Stars: 1,065 on GitHub
Forks: 101 on GitHub
Docker dependents: 19
Docker downloads: 411,566
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/lthibault, https://github.com/sponsors/zenhack, https://github.com/sponsors/zombiezen
Last synced: 6 days ago
github.com/go-musicfox/spotifox v1.1.0
Spotifox is yet another spotify CLI client similar to go-musicfox6 versions - Latest release: 18 days ago - 19 stars on GitHub
github.com/cri-o/cri-o v1.30.0
Open Container Initiative-based implementation of Kubernetes Container Runtime Interface207 versions - Latest release: about 1 month ago - 1 dependent package - 61 dependent repositories - 4,515 stars on GitHub
github.com/kubernetes-sigs/cri-o v1.30.0
Open Container Initiative-based implementation of Kubernetes Container Runtime Interface207 versions - Latest release: about 1 month ago - 1 dependent package - 4 dependent repositories - 4,453 stars on GitHub
github.com/kubernetes-incubator/cri-o v1.29.4
206 versions - Latest release: about 1 month ago - 6 dependent repositoriesgithub.com/containers/conmon-rs v0.6.3
An OCI container runtime monitor written in Rust9 versions - Latest release: about 1 month ago - 10 dependent packages - 16 dependent repositories - 101 stars on GitHub
github.com/aurora-is-near/relayer2-base v1.1.6
18 versions - Latest release: about 2 months ago - 1 dependent repositoriesgithub.com/arcspace/go-arc-sdk v0.7.6
Docs, protobufs, and Go types for building an arc.AppModule21 versions - Latest release: about 2 months ago - 6 dependent packages - 0 stars on GitHub
bitbucket.org/iptotal/protocol v0.3.2
5 versions - Latest release: 2 months agogithub.com/vinceanalytics/vince v0.0.67
vince - The Cloud Native Web Analytics Platform. Built on Go + React + Apache Arrow and Apache P...69 versions - Latest release: 2 months ago - 5 stars on GitHub
github.com/tablelandnetwork/basin-cli v0.0.12
Continuously publish data from your database to the Tableland network.13 versions - Latest release: 3 months ago - 11 stars on GitHub
gitlab-ee.funplus.io/mg-server/mgsl v1.0.5
21 versions - Latest release: 3 months agogithub.com/kubernetes-incubator/ocid v1.29.2
203 versions - Latest release: 3 months agogithub.imxd.top/cri-o/cri-o v1.29.2
198 versions - Latest release: 3 months agogithub.com/haircommander/cri-o v1.28.4
Open Container Initiative-based implementation of Kubernetes Container Runtime Interface69 versions - Latest release: 3 months ago - 1 stars on GitHub
github.com/vercel/turbo/cli v0.0.0-20240125182351-59350bf72ccd
Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – i...1,542 versions - Latest release: 4 months ago - 20,967 stars on GitHub
github.com/grafana/mimir v0.0.0-20240125181903-dcc2d9bbbed4
Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage f...1,626 versions - Latest release: 4 months ago - 8 dependent packages - 5 dependent repositories - 3,067 stars on GitHub
github.com/zalf-rpm/mas-infrastructure/src/go/test/test_server v0.0.0-20231201152638-265e6d4b7f11
8 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/persistence v0.0.0-20231201152638-265e6d4b7f11
53 versions - Latest release: 6 months ago - 10 dependent packages - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/soil v0.0.0-20231201152638-265e6d4b7f11
49 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/climate v0.0.0-20231201152638-265e6d4b7f11
42 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/common v0.0.0-20231201152638-265e6d4b7f11
49 versions - Latest release: 6 months ago - 10 dependent packages - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/geo v0.0.0-20231201152638-265e6d4b7f11
44 versions - Latest release: 6 months ago - 5 dependent packages - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/management v0.0.0-20231201152638-265e6d4b7f11
34 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/crop v0.0.0-20231201152638-265e6d4b7f11
32 versions - Latest release: 6 months ago - 1 dependent package - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/test v0.0.0-20231201152638-265e6d4b7f11
33 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/src/go/commonlib v0.0.0-20231201152638-265e6d4b7f11
27 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/grid v0.0.0-20231201152638-265e6d4b7f11
21 versions - Latest release: 6 months ago - 1 dependent package - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/service v0.0.0-20231201152638-265e6d4b7f11
14 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/registry v0.0.0-20231201152638-265e6d4b7f11
24 versions - Latest release: 6 months ago - 2 dependent packagesgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/common_date v0.0.0-20231201152638-265e6d4b7f11
4 versions - Latest release: 6 months ago - 2 dependent packages - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/fbp v0.0.0-20231201152638-265e6d4b7f11
3 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/src/go/test/test_client_gw v0.0.0-20231201152638-265e6d4b7f11
2 versions - Latest release: 6 months agogithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/model v0.0.0-20231201152638-265e6d4b7f11
12 versions - Latest release: 6 months agogithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/config v0.0.0-20231201152638-265e6d4b7f11
10 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/model/weberest v0.0.0-20231201152638-265e6d4b7f11
10 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/model/yieldstat v0.0.0-20231201152638-265e6d4b7f11
10 versions - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/storage v0.0.0-20231201152638-265e6d4b7f11
1 version - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/capnproto_schemas/gen/go/cluster v0.0.0-20231201152638-265e6d4b7f11
1 version - Latest release: 6 months ago - 2 stars on GitHubgithub.com/zalf-rpm/mas-infrastructure/src/go/services/gw_service v0.0.0-20231201152638-265e6d4b7f11
1 version - Latest release: 6 months ago - 2 stars on GitHubgithub.com/johanhenriksson/goworld v0.0.0-20231109170831-124f97e005f9
Experimental Vulkan 3D Engine witten in Go19 versions - Latest release: 7 months ago - 27 stars on GitHub
github.com/hiveot/hub v0.0.0-20231027192654-147f0cfb10b1
Hub implementation for the hive-of-things. Written in golang.25 versions - Latest release: 7 months ago - 2 dependent packages - 1 dependent repositories - 3 stars on GitHub
github.com/mikelsr/ww-webcrawler v0.0.0-20231010233636-8f98af209521
Very simple webcrawler implemented using WetWare2 versions - Latest release: 8 months ago - 1 stars on GitHub
github.com/mikelsr/raft-capnp v0.0.0-20230923180609-d07d1774bde1
Etcd's raft with Cap’n Proto as transport.2 versions - Latest release: 8 months ago - 0 stars on GitHub
github.com/go-musicfox/go-librespot v0.1.0
Refactor of librespot for Go1 version - Latest release: 9 months ago - 0 stars on GitHub
github.com/wetware/pkg v0.1.0-alpha.1
Peer-to-peer cloud environment56 versions - Latest release: 10 months ago - 1 dependent package - 34 stars on GitHub
github.com/wetware/ww v0.1.0-alpha.1
58 versions - Latest release: 10 months ago - 1 dependent package - 1 dependent repositories - 23 stars on GitHubgithub.com/wetware/wetware v0.1.0-alpha.1
56 versions - Latest release: 10 months agogithub.com/wetware/casm v0.0.0-20230720142802-055f8dac88b4
Universal middleware for decentralized computing40 versions - Latest release: 11 months ago - 5 dependent packages - 3 dependent repositories - 7 stars on GitHub
zenhack.net/go/tempest v0.0.0-20230630192021-fd1ce1af1545
1 version - Latest release: 11 months ago - 69 stars on GitHubgithub.com/theapemachine/wrkspc v0.1.1
infra == code17 versions - Latest release: about 1 year ago - 5 dependent packages - 3 dependent repositories - 2 stars on GitHub
github.com/hiveot/bindings/zwavejs v0.0.0-20230501172135-922027568c98
Bindings for use with HiveOT Hub3 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/hiveot/bindings/owserver v0.0.0-20230501172135-922027568c98
Bindings for use with HiveOT Hub1 version - Latest release: about 1 year ago - 0 stars on GitHub
github.com/jwhonce/cri-o v1.27.0
Open Container Image Format integration to Kubernetes185 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/jwhonce/ocid v1.27.0
Open Container Image Format integration to Kubernetes185 versions - Latest release: about 1 year ago - 0 stars on GitHub
zenhack.net/go/ocap-md v0.0.0-20230216004429-6ce3ea9bca56 💰
3 versions - Latest release: over 1 year ago - 3 stars on GitHubzenhack.net/go/websocket-capnp v0.0.0-20230212023810-f179b8b2c72b
Package websocketcapnp integrates websockets with capnproto.4 versions - Latest release: over 1 year ago - 4 dependent packages - 1 dependent repositories - 3 stars on GitHub
github.com/hiveot/hub.capnp v0.1.0-alpha
8 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositorieszenhack.net/go/sandstorm v0.0.0-20230111030500-e2e80d8a33c2 💰
sandstorm capnp bindings and helpers6 versions - Latest release: over 1 year ago - 1 dependent package - 3 dependent repositories - 9 stars on GitHub
github.com/wrk-grp/spd v0.0.0-20230104023033-245f720bb57b
Secure Private Datagrams.1 version - Latest release: over 1 year ago - 0 stars on GitHub
github.com/nestybox/cri-o v1.25.1
Temporary CRI-O fork with minor changes required to work with Sysbox on K8s v1.21+. We will work ...174 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/jeffromf/cri-o v1.24.1
169 versions - Latest release: almost 2 years ago - 0 stars on GitHubgithub.com/wetware/lab/testground v0.0.0-20220105145712-c2fe43308be8
Simulation and integration tests for Wetware1 version - Latest release: over 2 years ago - 1 stars on GitHub
github.com/wetware/lab v0.0.0-20211230122739-4e97f332d6d4
Simulation and integration tests for Wetware1 version - Latest release: over 2 years ago - 1 stars on GitHub