Documentation ¶
Index ¶
- type ClonedBuffer
- type Config
- type Logger
- type Manager
- func (m *Manager) Create(size int64, mode int, b SharedBuffer) (fd int, err error)
- func (m *Manager) CreateCloned(size int64, mode int, b ClonedBuffer) (fd int, err error)
- func (m *Manager) CreateTemporal(size int64, mode int, b TemporalBuffer) (fd int, err error)
- func (m *Manager) Shutdown(ctx context.Context) (err error)
- type SharedBuffer
- type TemporalBuffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClonedBuffer ¶
ClonedBuffer's content may be read repeatedly.
type Logger ¶
type Logger interface {
Printf(format string, v ...interface{})
}
Logger for error and/or debug messages. Subset of log.Logger.
type Manager ¶
type Manager struct { Config // contains filtered or unexported fields }
Manager of lazy memory. It is backed by a custom filesystem implementation.
func (*Manager) Create ¶
Create a file descriptor which should be passed to another process for memory mapping. The memory can be mapped multiple times as PROT_SHARED and/or PROT_PRIVATE.
In case of failure, no SharedBuffer methods have been invoked.
func (*Manager) CreateCloned ¶
CreateCloned memory file descriptor which should be passed to another process for mapping. The memory can be mapped multiple times as PROT_PRIVATE.
In case of failure, no ClonedBuffer methods have been invoked.
func (*Manager) CreateTemporal ¶
CreateTemporal memory file descriptor which should be passed to another process for mapping. The memory can be mapped once as PROT_PRIVATE.
type SharedBuffer ¶
SharedBuffer's content may be overwritten. A range won't be written to before it has been read at least once.
type TemporalBuffer ¶
TemporalBuffer's content will be read at most once (per range).