docs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePageRequest

type CreatePageRequest struct {
	ParentID *string `json:"parent_id,omitempty"`
	Title    string  `json:"title"`
	Emoji    *string `json:"emoji,omitempty"`
	Content  *string `json:"content,omitempty"`
}

type Handler

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

Handler handles documentation API requests

func NewHandler

func NewHandler(
	docsService *docs.Service,
	userService user.Service,
	authService auth.Service,
	config *config.Config,
) *Handler

NewHandler creates a new documentation handler

func (*Handler) Routes

func (h *Handler) Routes() []common.Route

Routes returns the routes for the documentation API

type MovePageRequest

type MovePageRequest struct {
	ParentID *string `json:"parent_id,omitempty"`
	Position int     `json:"position"`
}

type UpdatePageRequest

type UpdatePageRequest struct {
	Title   *string `json:"title,omitempty"`
	Emoji   *string `json:"emoji,omitempty"`
	Content *string `json:"content,omitempty"`
}

type UploadImageRequest

type UploadImageRequest struct {
	Filename    string `json:"filename"`
	ContentType string `json:"content_type"`
	Data        string `json:"data"` // Base64 encoded
}

Jump to

Keyboard shortcuts

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