Documentation
¶
Index ¶
- func CleanText(context string) *string
- func IsValidPadId(padID string) bool
- type DefaultContent
- type Load
- type Pad
- func (p *Pad) AddSavedRevision(author string) error
- func (p *Pad) AppendChatMessage(authorId *string, timestamp int64, text string) (*int, error)
- func (p *Pad) AppendRevision(cs string, authorId *string) (*int, error)
- func (p *Pad) Check() error
- func (p *Pad) GetAllAuthors() []string
- func (p *Pad) GetAllChatters() (*[]string, error)
- func (p *Pad) GetChatMessages(start int, end int) (*[]db2.ChatMessageDBWithDisplayName, error)
- func (p *Pad) GetInternalRevisionAText(targetRev int) *apool.AText
- func (p *Pad) GetRevision(revNumber int) (*db2.PadSingleRevision, error)
- func (p *Pad) GetRevisionAuthor(revNum int) (*string, error)
- func (p *Pad) GetRevisionChangeset(revNum int) (*string, error)
- func (p *Pad) GetRevisionDate(rev int) (*int64, error)
- func (p *Pad) GetRevisions(start int, end int) (*[]db2.PadSingleRevision, error)
- func (p *Pad) Init(text *string, author *string, authorManager *author.Manager) error
- func (p *Pad) Remove() error
- func (p *Pad) RemoveAllChats() error
- func (p *Pad) RemoveAllSavedRevisions() error
- func (p *Pad) Save() error
- func (p *Pad) SetText(newText string, authorId *string) error
- func (p *Pad) SpliceText(start int, ndel int, ins string, authorId *string) error
- func (p *Pad) Text() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidPadId ¶ added in v0.0.2
Types ¶
type DefaultContent ¶
type Pad ¶
type Pad struct {
Id string
ChatHead int
Head int
PublicStatus bool
SavedRevisions []revision.SavedRevision
Pool apool.APool
AText apool.AText
ReadonlyId *string
UpdatedAt *time.Time
CreatedAt time.Time
// contains filtered or unexported fields
}
func (*Pad) AddSavedRevision ¶ added in v0.0.4
func (*Pad) AppendChatMessage ¶ added in v0.0.2
func (*Pad) AppendRevision ¶
func (*Pad) GetAllAuthors ¶
func (*Pad) GetAllChatters ¶ added in v0.0.4
func (*Pad) GetChatMessages ¶ added in v0.0.2
func (*Pad) GetInternalRevisionAText ¶
func (*Pad) GetRevision ¶
func (p *Pad) GetRevision(revNumber int) (*db2.PadSingleRevision, error)
func (*Pad) GetRevisionChangeset ¶ added in v0.0.2
func (*Pad) GetRevisions ¶ added in v0.0.2
func (*Pad) RemoveAllChats ¶
func (*Pad) RemoveAllSavedRevisions ¶
func (*Pad) SpliceText ¶
Click to show internal directories.
Click to hide internal directories.