build: golang.org/x/build/devapp/owners Index | Files

package owners

import "golang.org/x/build/devapp/owners"

Index

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 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 7 packages (graph) and is imported by 2 packages. Updated 2018-07-22. Refresh now. Tools for package owners.