gitwiki

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package gitwiki provides a GitLab wiki API client for changelog accumulation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cfg Config) *Client

func (*Client) AccumulatePage

func (c *Client) AccumulatePage(ctx context.Context, title, newContent string) (*Page, bool, error)

func (*Client) Configured

func (c *Client) Configured() bool

func (*Client) CreatePage

func (c *Client) CreatePage(ctx context.Context, title, content string) (*Page, error)

func (*Client) GetPage

func (c *Client) GetPage(ctx context.Context, slug string) (*Page, error)

func (*Client) UpdatePage

func (c *Client) UpdatePage(ctx context.Context, slug, title, content string) (*Page, error)

type Config

type Config struct {
	Token   string
	Repo    string
	BaseURL string
	Slug    string
}

type Page

type Page struct {
	Slug    string `json:"slug"`
	Title   string `json:"title"`
	Content string `json:"content"`
	URL     string `json:"web_url"`
}

Jump to

Keyboard shortcuts

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