build: Index | Files

package owners

import ""


Package Files

owners.go table.go

func Handler Uses

func Handler(w http.ResponseWriter, r *http.Request)

Handler takes one or more paths and returns a map of each to a matching Entry struct. If no Entry is matched for the path, the value for the key is nil.

type Entry Uses

type Entry struct {
    Primary   []Owner `json:"primary"`
    Secondary []Owner `json:"secondary,omitempty"`

type Owner Uses

type Owner struct {
    // GitHubUsername is a GitHub user name or team name.
    GitHubUsername string `json:"githubUsername"`
    GerritEmail    string `json:"gerritEmail"`

type Request Uses

type Request struct {
    Payload struct {
        Paths []string `json:"paths"`
    }   `json:"payload"`
    Version int `json:"v"` // API version

type Response Uses

type Response struct {
    Payload struct {
        Entries map[string]*Entry `json:"entries"` // paths in request -> Entry
    }   `json:"payload"`
    Error string `json:"error,omitempty"`

Package owners imports 6 packages (graph) and is imported by 7 packages. Updated 2020-12-01. Refresh now. Tools for package owners.