Documentation
¶
Index ¶
- func DeleteContentById(config Config, contentId int64) (http.Response, error)
- func RemovePreviousVersions(config Config, contentId int64, numberOfVersionsToKeep int64) error
- type Config
- type ContentDetail
- func CreateNewPage(config Config, parentContentId int64, title string, body string) (ContentDetail, error)
- func GetContentDetailById(config Config, contentId int64) (ContentDetail, error)
- func UpdateContentById(config Config, contentId int64, body string, removePreviousVersions bool) (ContentDetail, error)
- type ContentDetailVersion
- type ContentNewOperationRequest
- type ContentOperationBody
- type ContentOperationBodyStorage
- type ContentOperationVersion
- type ContentUpdateOperationRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteContentById ¶
Types ¶
type ContentDetail ¶
type ContentDetail struct { Id int64 `json:"id"` Title string `json:"title"` Version ContentDetailVersion `json:"version"` SpaceId int64 `json:"spaceId"` CreatedAt time.Time `json:"createdAt"` Body ContentOperationBody `json:"body"` ParentContentId int64 `json:"parentId"` ResponseStatusCode int ResponseStatus string ResponseBody string }
func CreateNewPage ¶
func GetContentDetailById ¶
func GetContentDetailById(config Config, contentId int64) (ContentDetail, error)
func UpdateContentById ¶
type ContentDetailVersion ¶
type ContentNewOperationRequest ¶
type ContentNewOperationRequest struct { Status string `json:"status"` Title string `json:"title"` SpaceId int64 `json:"spaceId"` Body ContentOperationBody `json:"body"` Version ContentOperationVersion `json:"version"` ParentContentId int64 `json:"parentId"` }
func NewNewOperationRequest ¶
type ContentOperationBody ¶
type ContentOperationBody struct {
Storage ContentOperationBodyStorage `json:"storage"`
}
type ContentOperationVersion ¶
type ContentOperationVersion struct {
Number int64 `json:"number"`
}
type ContentUpdateOperationRequest ¶
type ContentUpdateOperationRequest struct { Id int64 `json:"id"` Status string `json:"status"` Title string `json:"title"` SpaceId int64 `json:"spaceId"` Body ContentOperationBody `json:"body"` Version ContentOperationVersion `json:"version"` }
func NewUpdateOperationRequest ¶
func NewUpdateOperationRequest(detail ContentDetail, body string) (ContentUpdateOperationRequest, error)
Click to show internal directories.
Click to hide internal directories.