blog

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blog

type Blog struct {
	Path    string
	RawData string
}

type BlogTree

type BlogTree struct {
	Tree []struct {
		Path string `json:"path"`
	} `json:"tree"`
}

type Client

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

func NewClient

func NewClient(githubToken string) *Client

func (*Client) GetAllBlogs

func (c *Client) GetAllBlogs(ctx context.Context) ([]Blog, error)

GetAllBlogs gets all blogs from the GitHub repository.

func (*Client) GetBlogRaw

func (c *Client) GetBlogRaw(ctx context.Context, path string) (string, error)

GetBlogRaw gets the raw data of a blog from the GitHub repository.

func (*Client) GetTags

func (c *Client) GetTags(ctx context.Context) (map[string]int, error)

Jump to

Keyboard shortcuts

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