Versions in this module Expand all Collapse all v1 v1.1.0 Apr 19, 2020 Changes in this version + const CurrentVersion + const OptionalParam + type EtherpadError struct + func NewEtherpadError(code ReturnCode, message string) EtherpadError + func (e EtherpadError) Error() string + type EtherpadLite struct + APIVersion string + BaseParams map[string]interface{} + BaseURL string + Client *http.Client + RaiseEtherpadErrors bool + func NewEtherpadLite(apiKey string) *EtherpadLite + func (pad *EtherpadLite) AppendText(ctx context.Context, padID, text interface{}) (*Response, error) + func (pad *EtherpadLite) CheckToken(ctx context.Context) (*Response, error) + func (pad *EtherpadLite) CopyPad(ctx context.Context, sourceID, destinationID, force interface{}) (*Response, error) + func (pad *EtherpadLite) CreateAuthor(ctx context.Context, name interface{}) (*Response, error) + func (pad *EtherpadLite) CreateAuthorIfNotExistsFor(ctx context.Context, authorMapper, name interface{}) (*Response, error) + func (pad *EtherpadLite) CreateDiffHTML(ctx context.Context, padID, startRev, endRev interface{}) (*Response, error) + func (pad *EtherpadLite) CreateGroup(ctx context.Context) (*Response, error) + func (pad *EtherpadLite) CreateGroupIfNotExistsFor(ctx context.Context, groupMapper interface{}) (*Response, error) + func (pad *EtherpadLite) CreateGroupPad(ctx context.Context, groupID, padName, text interface{}) (*Response, error) + func (pad *EtherpadLite) CreatePad(ctx context.Context, padID, text interface{}) (*Response, error) + func (pad *EtherpadLite) CreateSession(ctx context.Context, groupID, authorID, validUntil interface{}) (*Response, error) + func (pad *EtherpadLite) DeleteGroup(ctx context.Context, groupID interface{}) (*Response, error) + func (pad *EtherpadLite) DeletePad(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) DeleteSession(ctx context.Context, sessionID interface{}) (*Response, error) + func (pad *EtherpadLite) GetAttributePool(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) GetAuthorName(ctx context.Context, authorID interface{}) (*Response, error) + func (pad *EtherpadLite) GetChatHead(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) GetChatHistory(ctx context.Context, padID, start, end interface{}) (*Response, error) + func (pad *EtherpadLite) GetHTML(ctx context.Context, padID, rev interface{}) (*Response, error) + func (pad *EtherpadLite) GetLastEdited(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) GetPadID(ctx context.Context, readOnlyID interface{}) (*Response, error) + func (pad *EtherpadLite) GetPublicStatus(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) GetReadOnlyID(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) GetRevisionChangeset(ctx context.Context, padID, rev interface{}) (*Response, error) + func (pad *EtherpadLite) GetRevisionsCount(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) GetSavedRevisionsCount(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) GetSessionInfo(ctx context.Context, sessionID interface{}) (*Response, error) + func (pad *EtherpadLite) GetText(ctx context.Context, padID, rev interface{}) (*Response, error) + func (pad *EtherpadLite) IsPasswordProtected(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) ListAllGroups(ctx context.Context) (*Response, error) + func (pad *EtherpadLite) ListAllPads(ctx context.Context) (*Response, error) + func (pad *EtherpadLite) ListAuthorsOfPad(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) ListPads(ctx context.Context, groupID interface{}) (*Response, error) + func (pad *EtherpadLite) ListPadsOfAuthor(ctx context.Context, authorID interface{}) (*Response, error) + func (pad *EtherpadLite) ListSavedRevisions(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) ListSessionsOfAuthor(ctx context.Context, authorID interface{}) (*Response, error) + func (pad *EtherpadLite) ListSessionsOfGroup(ctx context.Context, groupID interface{}) (*Response, error) + func (pad *EtherpadLite) MovePad(ctx context.Context, sourceID, destinationID, force interface{}) (*Response, error) + func (pad *EtherpadLite) PadUsers(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) PadUsersCount(ctx context.Context, padID interface{}) (*Response, error) + func (pad *EtherpadLite) RestoreRevision(ctx context.Context, padId, rev interface{}) (*Response, error) + func (pad *EtherpadLite) SaveRevision(ctx context.Context, padID, rev interface{}) (*Response, error) + func (pad *EtherpadLite) SendClientsMessage(ctx context.Context, padID, msg interface{}) (*Response, error) + func (pad *EtherpadLite) SetHTML(ctx context.Context, padID, html interface{}) (*Response, error) + func (pad *EtherpadLite) SetPassword(ctx context.Context, padID, password interface{}) (*Response, error) + func (pad *EtherpadLite) SetPublicStatus(ctx context.Context, padID, publicStatus interface{}) (*Response, error) + func (pad *EtherpadLite) SetText(ctx context.Context, padID, text interface{}) (*Response, error) + type Response struct + Code ReturnCode + Data map[string]interface{} + Message string + type ReturnCode int + const EverythingOk + const InternalError + const NoSuchFunction + const WrongAPIKey + const WrongParameters + func (c ReturnCode) String() string