gitlabclient

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: MIT Package gitlabclient retrieves commits from GitLab and normalizes them into the shared model types used by sting.

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 retrieves commits from GitLab for an author over a time window.

func New

func New(token, baseURL string, perPage int) (*Client, error)

New builds a Client. token may be empty for public data. baseURL, when set, targets a GitLab API v4 root (e.g. "https://gitlab.example.com/api/v4/"). perPage is clamped to the API's 1-100 range.

func (*Client) Collect

func (c *Client) Collect(ctx context.Context, q model.Query) (model.Result, error)

Collect runs a query using its scope and returns the normalized result.

Jump to

Keyboard shortcuts

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