Documentation
¶
Index ¶
- func RunFromCLI(logger *zap.SugaredLogger, args []string)
- type Pad
- func (p *Pad) Append(text string)
- func (p *Pad) Close()
- func (p *Pad) On(event string, handler func(interface{}))
- func (p *Pad) OnAcceptCommit(callback func(rev int))
- func (p *Pad) OnConnected(callback func(padState *Pad))
- func (p *Pad) OnDisconnect(callback func(err interface{}))
- func (p *Pad) OnMessage(callback func(msg map[string]interface{}))
- func (p *Pad) OnNewContents(callback func(atext apool.AText))
- func (p *Pad) OnNumConnectedUsers(callback func(count int))
- type PadChangeset
- type PadState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunFromCLI ¶
func RunFromCLI(logger *zap.SugaredLogger, args []string)
Types ¶
type Pad ¶
type Pad struct {
// contains filtered or unexported fields
}
func (*Pad) OnAcceptCommit ¶
func (*Pad) OnConnected ¶
func (*Pad) OnDisconnect ¶
func (p *Pad) OnDisconnect(callback func(err interface{}))
func (*Pad) OnNewContents ¶
func (*Pad) OnNumConnectedUsers ¶
type PadChangeset ¶
type PadChangeset struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.