Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GErrMessageIsExist = errors.New("message is exist") GErrMessageIsNotExist = errors.New("message is not exist") )
Functions ¶
This section is empty.
Types ¶
type IDBWrapper ¶
type IDBWrapper interface { types.ICloser Get() IDatabase Set(IDatabase) IDBWrapper }
func NewDBWrapper ¶
func NewDBWrapper() IDBWrapper
type IDatabase ¶
type IDatabase interface { types.ICloser Push(net_message.IMessage) error Load([]byte) (net_message.IMessage, error) Hash(uint64) ([]byte, error) Pointer() uint64 Settings() ISettings }
func NewDatabase ¶
func NewInMemoryDatabase ¶
type ISettings ¶
type ISettings interface { net_message.ISettings GetPath() string GetMessagesCapacity() uint64 }
func NewSettings ¶
Click to show internal directories.
Click to hide internal directories.