memory

package
v0.0.0-...-39bbcdd Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContent

func GetContent(node generic.NodeInterface) string

func GetRef

func GetRef(node generic.NodeInterface) string

func NewOptions

func NewOptions(idAllocator IDAllocatorInterface) options.Interface

func SetContent

func SetContent(node generic.NodeInterface, content string)

func SetRef

func SetRef(node generic.NodeInterface, ref string)

Types

type Driver

type Driver struct {
	generic.NullDriver
	// contains filtered or unexported fields
}

func (*Driver) Delete

func (o *Driver) Delete(ctx context.Context)

func (*Driver) Equals

func (o *Driver) Equals(ctx context.Context, other generic.NodeInterface) bool

func (*Driver) FromFormat

func (o *Driver) FromFormat(f f3.Interface)

func (*Driver) Get

func (o *Driver) Get(ctx context.Context) bool

func (*Driver) GetIDFromName

func (o *Driver) GetIDFromName(ctx context.Context, content string) generic.NodeID

func (*Driver) ListPage

func (o *Driver) ListPage(ctx context.Context, page int) generic.ChildrenSlice

func (*Driver) NewFormat

func (o *Driver) NewFormat() f3.Interface

func (*Driver) Patch

func (o *Driver) Patch(ctx context.Context)

func (*Driver) Put

func (o *Driver) Put(ctx context.Context) generic.NodeID

func (*Driver) String

func (o *Driver) String() string

func (*Driver) ToFormat

func (o *Driver) ToFormat() f3.Interface

type FormatMemory

type FormatMemory struct {
	f3.Common
	Ref     *f3.Reference
	Content string
}

func NewFormat

func NewFormat(id string) *FormatMemory

func (*FormatMemory) GetReferences

func (o *FormatMemory) GetReferences() f3.References

type IDAllocatorInterface

type IDAllocatorInterface interface {
	// contains filtered or unexported methods
}

func NewIDAllocatorGenerator

func NewIDAllocatorGenerator(prefix string) IDAllocatorInterface

func NewIDAllocatorNull

func NewIDAllocatorNull() IDAllocatorInterface

Jump to

Keyboard shortcuts

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