pad

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanText

func CleanText(context string) *string

Types

type DefaultContent

type DefaultContent struct {
	Type     *string
	Content  *string
	Pad      *Pad
	AuthorId *string
}

type Load

type Load struct {
	Pad *Pad
}

type Pad

type Pad struct {
	Id           string
	ChatHead     int
	Head         int
	PublicStatus bool

	Pool  apool.APool
	AText apool.AText
	// contains filtered or unexported fields
}

func NewPad

func NewPad(id string) Pad

func (*Pad) AppendRevision

func (p *Pad) AppendRevision(cs string, authorId *string) int

func (*Pad) GetAllAuthors

func (p *Pad) GetAllAuthors() []string

func (*Pad) GetInternalRevisionAText

func (p *Pad) GetInternalRevisionAText(targetRev int) *apool.AText

func (*Pad) GetPadMetaData

func (p *Pad) GetPadMetaData(revNum int) *db2.PadMetaData

func (*Pad) GetRevision

func (p *Pad) GetRevision(revNumber int) (*db2.PadSingleRevision, error)

func (*Pad) GetRevisionAuthor

func (p *Pad) GetRevisionAuthor(revNum int) (*string, error)

func (*Pad) GetRevisionDate

func (p *Pad) GetRevisionDate(rev int) int

func (*Pad) Init

func (p *Pad) Init(text *string, author *string) error

func (*Pad) Remove

func (p *Pad) Remove()

func (*Pad) RemoveAllChats

func (p *Pad) RemoveAllChats() error

func (*Pad) RemoveAllSavedRevisions

func (p *Pad) RemoveAllSavedRevisions() error

func (*Pad) SetText

func (p *Pad) SetText(newText string, authorId *string) error

func (*Pad) SpliceText

func (p *Pad) SpliceText(start int, ndel int, ins string, authorId *string) error

func (*Pad) Text

func (p *Pad) Text() string

type Revision

type Revision struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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