gitlab

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Title                  string
	Description            string
	AuthorName             string
	AuthorAvatarURL        string
	AvatarURL              string
	CanTruncateDescription bool
	FooterTitle            string
	FooterURL              string
	FooterTime             *time.Time
}

Page represents info of GitLab page

type URLParser

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

URLParser represents GitLab URL parser

func NewGitlabURLParser

func NewGitlabURLParser(params *URLParserParams) (*URLParser, error)

NewGitlabURLParser create new URLParser instance

func (*URLParser) FetchURL

func (p *URLParser) FetchURL(url string) (*Page, error)

FetchURL fetch GitLab url

type URLParserParams

type URLParserParams struct {
	APIEndpoint     string
	BaseURL         string
	PrivateToken    string
	GitPandaVersion string
	IsDebugLogging  bool
}

URLParserParams represents parameters of NewGitlabURLParser

Jump to

Keyboard shortcuts

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