Documentation ¶
Index ¶
Constants ¶
View Source
const ( BUFF_SIZE = 64 COMMAND_TYPES = 3 RESPONSE_TYPES = 5 MIN_BUCKETNAME_SIZE = 3 QUERY_TYPES QueryType = 7 CLOSE_COMMAND = iota * COMMAND_TYPES ERROR ResponseType = iota * RESPONSE_TYPES UPDATE CREATE NOTFOUND READ QueryType = iota * QUERY_TYPES WRITE DELETE CLOSE )
View Source
const ( RPC_CONTROL_NAME = "DbControl" RPC_TCP_PORT = ":5514" )
View Source
const RELATIONS = "rxds"
Variables ¶
This section is empty.
Functions ¶
func ConnectToStorage ¶
Connect a Client to this Storage
Types ¶
type DbConfiguration ¶
type ManagedDocument ¶
func (*ManagedDocument) Link ¶
func (m *ManagedDocument) Link(typeName string, d interface{}) (*ManagedDocument, error)
type ResponseType ¶
type ResponseType int
type Storage ¶
type Storage struct { Reader chan *Query Result chan *Response Writer chan *Document Control chan *Command // Cursor chan chan *Document Clients sync.WaitGroup Lock sync.Mutex // contains filtered or unexported fields }
func NewStorage ¶
func NewStorage(cfg *DbConfiguration) (s *Storage, err error)
Creates new BoltDB Backend Type with initialized Channels
Click to show internal directories.
Click to hide internal directories.