gerrit: dmitri.shuralyov.com/route/gerrit Index | Files

package gerrit

import "dmitri.shuralyov.com/route/gerrit"

Package gerrit defines a router for targeting Gerrit subjects.

Index

Package Files

gerrit.go

type GoogleSource Uses

type GoogleSource struct{}

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

func (GoogleSource) ChangeMessageURL Uses

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 Uses

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 Uses

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.

Package gerrit imports 3 packages (graph). Updated 2019-04-17. Refresh now. Tools for package owners.