gitlab

package
v0.0.0-...-dcbe3c4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package gitlab implements gitlab api server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSvc

func InitSvc(gitAPI, gitToken string)

Types

type GetFileResponse

type GetFileResponse struct {
	Content  string `json:"content"`
	LineFrom uint   `json:"line_from"`
}

type GitFileURL

type GitFileURL struct {
	ID       string
	Ref      string
	Path     string
	LineFrom uint
	LineTo   uint
}

type Service

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

func NewService

func NewService(gitAPI, gitToken string) *Service

func (*Service) GetFile

func (s *Service) GetFile(ctx context.Context, file string) (*GetFileResponse, error)

Jump to

Keyboard shortcuts

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