tiecommon

package module
v0.0.0-...-cb87d11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2021 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Overview

tie-common project tie-common.go

Index

Constants

View Source
const Associated = "associated"

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplyGet

type ReplyGet struct {
	Item         string
	Associations []string
	Relations    []string
}

type ReplyStatus

type ReplyStatus struct {
	Success bool
	Message string
}

type Request

type Request interface {
	Reply(*tiedb.Tree, tiedb.CollectionKey) string
}

type RequestAdd

type RequestAdd struct {
	Key    string
	Value1 string
	Value2 string
}

func (*RequestAdd) Reply

func (r *RequestAdd) Reply(db *tiedb.Tree, key tiedb.CollectionKey) string

type RequestDelete

type RequestDelete struct {
	Key    string
	Value1 string
	Value2 string
}

func (*RequestDelete) Reply

func (r *RequestDelete) Reply(db *tiedb.Tree, key tiedb.CollectionKey) string

type RequestGet

type RequestGet struct {
	Values          []string
	NextLevelValues []string
	Filter          string
	MaxAssociations int
}

func (*RequestGet) Reply

func (r *RequestGet) Reply(db *tiedb.Tree, key tiedb.CollectionKey) string

type RequestUpdate

type RequestUpdate struct {
	Entry1    string
	Entry2    string
	Relation  string
	NewEntry2 string
}

func (*RequestUpdate) Reply

func (r *RequestUpdate) Reply(db *tiedb.Tree, key tiedb.CollectionKey) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL