gerrit

package module
v0.0.0-...-669e9b9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Overview

Package gerrit defines a router for targeting Gerrit subjects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleSource

type GoogleSource struct{}

GoogleSource provides HTML URLs of Gerrit subjects on googlesource.com.

func (GoogleSource) ChangeMessageURL

func (GoogleSource) ChangeMessageURL(_ context.Context, server, project string, changeID uint64, messageID string) string

ChangeMessageURL returns the HTML URL of the specified Gerrit change message on googlesource.com.

func (GoogleSource) ChangeURL

func (GoogleSource) ChangeURL(_ context.Context, server, project string, changeID uint64) string

ChangeURL returns the HTML URL of the specified Gerrit change on googlesource.com.

type Router

type Router interface {
	// ChangeURL returns the HTML URL of the specified Gerrit change.
	// server is the Gerrit server's hostname, such as "go.googlesource.com".
	ChangeURL(ctx context.Context, server, project string, changeID uint64) string

	// ChangeMessageURL returns the HTML URL of the specified Gerrit change message.
	// server is the Gerrit server's hostname, such as "go.googlesource.com".
	ChangeMessageURL(ctx context.Context, server, project string, changeID uint64, messageID string) string
}

Router provides HTML URLs of Gerrit subjects.

Jump to

Keyboard shortcuts

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