Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { StoreFile(options storage.StoreFileOptions) (storage.Event, error) GetFile(eventOfFile storage.Event) ([]byte, error) GetEvent(hashOfEvent [64]byte) (storage.Event, error) GetMetadata(eventOfFile storage.Event) ([]byte, error) GetAllRootEvents() ([]storage.Event, error) GetRootIndex() ([]storage.RootEventsIndex, error) GetRootEventsWithTitle(title string) ([]storage.Event, error) CreateRootEvent(title string) (storage.Event, error) CreateNewEvent(options storage.EventOptions) (storage.Event, error) }
Click to show internal directories.
Click to hide internal directories.