api

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

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
}

Client provides direct HTTP access to Gitea API

func NewClient

func NewClient(login *config.Login) *Client

NewClient creates a new API client from a Login config

func (*Client) Do

func (c *Client) Do(method, endpoint string, body io.Reader, headers map[string]string) (*http.Response, error)

Do executes an HTTP request with authentication headers

Jump to

Keyboard shortcuts

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