Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 913 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 913 Bytes

intro

The intro folder contains examples.

  • cleanup - about removing old and ownerless objects
  • discovery/ - about discovery server
  • preview/ - about feed preview
  • send_receive/ - about source and destination, and how to decode values back to golang-values
  • skybrief/ - briefly about skyobject

The types.go file implements basic types for these examples. And the file also implements registry of these types.

In CXO SHA256 hash used instead of pointers and Merkle-tree instead of slices. And all values should be encodable (e.g. int -> uint32 or any other).

And types below

type User struct {
	Name string
	Age  int
}

type Feed struct {
	Head  string
	Info  string
	Posts []*Post
}

type Post struct {
	Head string
	Body string
}

should be rewritten like in the types.go and registered.