Skip to content

Latest commit

 

History

History

intro

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.