Documentation ¶
Index ¶
- func AddEdgesToGraph(g *gographviz.Graph, i *warehouse.Issue, opts *graphOptions, ...) error
- func AddNodeToGraph(g *gographviz.Graph, i *warehouse.Issue, parent string) error
- func ErrRender(err error) render.Renderer
- func FileServer(r chi.Router, path string, root http.FileSystem)
- func GraphNodeName(i *warehouse.Issue) string
- func GraphNodeTitle(i *warehouse.Issue) string
- func NewRootCommand() *cobra.Command
- type DepvizCommand
- type ErrResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEdgesToGraph ¶
func AddNodeToGraph ¶
func FileServer ¶
func FileServer(r chi.Router, path string, root http.FileSystem)
func GraphNodeName ¶
func GraphNodeTitle ¶
func NewRootCommand ¶
Types ¶
type DepvizCommand ¶
type DepvizCommand interface { // NewCobraCommand translates the DepvizCommand to a *cobra.Command. NewCobraCommand(map[string]DepvizCommand) *cobra.Command // Load default run options from config file. LoadDefaultOptions() error // Parse the flags given on the command line, overwriting any default options. ParseFlags(*pflag.FlagSet) }
DepvizCommand represents a subcommand which can be selected when running depviz.
type ErrResponse ¶
type ErrResponse struct { Err error `json:"-"` // low-level runtime error HTTPStatusCode int `json:"-"` // http response status code StatusText string `json:"status"` // user-level status message AppCode int64 `json:"code,omitempty"` // application-specific error code ErrorText string `json:"error,omitempty"` // application-level error message, for debugging }
func (*ErrResponse) Render ¶
func (e *ErrResponse) Render(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.