Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type API
- func (api *API) GetPath(ctx context.Context, request GetPathRequestObject) (GetPathResponseObject, error)
- func (api *API) GetVertex(ctx context.Context, request GetVertexRequestObject) (GetVertexResponseObject, error)
- func (api *API) GetVertexDependencies(ctx context.Context, request GetVertexDependenciesRequestObject) (GetVertexDependenciesResponseObject, error)
- func (api *API) GetVertexDependents(ctx context.Context, request GetVertexDependentsRequestObject) (GetVertexDependentsResponseObject, error)
- func (api *API) GetVertexLineages(ctx context.Context, request GetVertexLineagesRequestObject) (GetVertexLineagesResponseObject, error)
- func (api *API) GetVertexNeighbors(ctx context.Context, request GetVertexNeighborsRequestObject) (GetVertexNeighborsResponseObject, error)
- func (api *API) Summary(ctx context.Context, request SummaryRequestObject) (SummaryResponseObject, error)
- type Edge
- type GetPath200JSONResponse
- type GetPath401JSONResponse
- type GetPath404JSONResponse
- type GetPath422JSONResponse
- type GetPath500JSONResponse
- type GetPathRequestObject
- type GetPathResponseObject
- type GetVertex200JSONResponse
- type GetVertex401JSONResponse
- type GetVertex404JSONResponse
- type GetVertex422JSONResponse
- type GetVertex500JSONResponse
- type GetVertexDependencies200JSONResponse
- type GetVertexDependencies401JSONResponse
- type GetVertexDependencies404JSONResponse
- type GetVertexDependencies422JSONResponse
- type GetVertexDependencies500JSONResponse
- type GetVertexDependenciesParams
- type GetVertexDependenciesRequestObject
- type GetVertexDependenciesResponseObject
- type GetVertexDependents200JSONResponse
- type GetVertexDependents401JSONResponse
- type GetVertexDependents404JSONResponse
- type GetVertexDependents422JSONResponse
- type GetVertexDependents500JSONResponse
- type GetVertexDependentsParams
- type GetVertexDependentsRequestObject
- type GetVertexDependentsResponseObject
- type GetVertexLineages200JSONResponse
- type GetVertexLineages401JSONResponse
- type GetVertexLineages404JSONResponse
- type GetVertexLineages422JSONResponse
- type GetVertexLineages500JSONResponse
- type GetVertexLineagesRequestObject
- type GetVertexLineagesResponseObject
- type GetVertexNeighbors200JSONResponse
- type GetVertexNeighbors401JSONResponse
- type GetVertexNeighbors404JSONResponse
- type GetVertexNeighbors422JSONResponse
- type GetVertexNeighbors500JSONResponse
- type GetVertexNeighborsRequestObject
- type GetVertexNeighborsResponseObject
- type GetVertexRequestObject
- type GetVertexResponseObject
- type InternalServerError
- type InternalServerErrorJSONResponse
- type InvalidParamFormatError
- type InvalidRequest
- type InvalidRequestJSONResponse
- type Label
- type MiddlewareFunc
- type NotFound
- type NotFoundJSONResponse
- type RequiredHeaderError
- type RequiredParamError
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetPath(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVertex(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVertexDependencies(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVertexDependents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVertexLineages(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVertexNeighbors(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Summary(w http.ResponseWriter, r *http.Request)
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type Subgraph
- type Summary
- type Summary200JSONResponse
- type Summary401JSONResponse
- type Summary500JSONResponse
- type SummaryRequestObject
- type SummaryResponseObject
- type TooManyValuesForParamError
- type Unauthorized
- type UnauthorizedJSONResponse
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type Vertex
- type VertexStatus
Constants ¶
const (
BearerHttpAuthenticationScopes = "bearerHttpAuthentication.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetPath ¶
func (api *API) GetPath(ctx context.Context, request GetPathRequestObject) (GetPathResponseObject, error)
func (*API) GetVertex ¶
func (api *API) GetVertex(ctx context.Context, request GetVertexRequestObject) (GetVertexResponseObject, error)
func (*API) GetVertexDependencies ¶
func (api *API) GetVertexDependencies(ctx context.Context, request GetVertexDependenciesRequestObject) (GetVertexDependenciesResponseObject, error)
func (*API) GetVertexDependents ¶
func (api *API) GetVertexDependents(ctx context.Context, request GetVertexDependentsRequestObject) (GetVertexDependentsResponseObject, error)
func (*API) GetVertexLineages ¶
func (api *API) GetVertexLineages(ctx context.Context, request GetVertexLineagesRequestObject) (GetVertexLineagesResponseObject, error)
func (*API) GetVertexNeighbors ¶
func (api *API) GetVertexNeighbors(ctx context.Context, request GetVertexNeighborsRequestObject) (GetVertexNeighborsResponseObject, error)
func (*API) Summary ¶
func (api *API) Summary(ctx context.Context, request SummaryRequestObject) (SummaryResponseObject, error)
type Edge ¶
type Edge struct {
// Class Classe ou Categoria do relacionamento
Class string `json:"class"`
// Destination Label único do recurso de destino
Destination string `json:"destination"`
// Label Nome do relacionamento que será exibido
Label string `json:"label"`
// Source Label único do recurso de origem
Source string `json:"source"`
}
Edge Um relacionamento entre recursos
type GetPath200JSONResponse ¶
type GetPath200JSONResponse Subgraph
func (GetPath200JSONResponse) VisitGetPathResponse ¶
func (response GetPath200JSONResponse) VisitGetPathResponse(w http.ResponseWriter) error
type GetPath401JSONResponse ¶
func (GetPath401JSONResponse) VisitGetPathResponse ¶
func (response GetPath401JSONResponse) VisitGetPathResponse(w http.ResponseWriter) error
type GetPath404JSONResponse ¶
type GetPath404JSONResponse struct{ NotFoundJSONResponse }
func (GetPath404JSONResponse) VisitGetPathResponse ¶
func (response GetPath404JSONResponse) VisitGetPathResponse(w http.ResponseWriter) error
type GetPath422JSONResponse ¶
type GetPath422JSONResponse struct{ InvalidRequestJSONResponse }
func (GetPath422JSONResponse) VisitGetPathResponse ¶
func (response GetPath422JSONResponse) VisitGetPathResponse(w http.ResponseWriter) error
type GetPath500JSONResponse ¶
type GetPath500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (GetPath500JSONResponse) VisitGetPathResponse ¶
func (response GetPath500JSONResponse) VisitGetPathResponse(w http.ResponseWriter) error
type GetPathRequestObject ¶
type GetPathResponseObject ¶
type GetPathResponseObject interface {
VisitGetPathResponse(w http.ResponseWriter) error
}
type GetVertex200JSONResponse ¶
type GetVertex200JSONResponse Vertex
func (GetVertex200JSONResponse) VisitGetVertexResponse ¶
func (response GetVertex200JSONResponse) VisitGetVertexResponse(w http.ResponseWriter) error
type GetVertex401JSONResponse ¶
func (GetVertex401JSONResponse) VisitGetVertexResponse ¶
func (response GetVertex401JSONResponse) VisitGetVertexResponse(w http.ResponseWriter) error
type GetVertex404JSONResponse ¶
type GetVertex404JSONResponse struct{ NotFoundJSONResponse }
func (GetVertex404JSONResponse) VisitGetVertexResponse ¶
func (response GetVertex404JSONResponse) VisitGetVertexResponse(w http.ResponseWriter) error
type GetVertex422JSONResponse ¶
type GetVertex422JSONResponse struct{ InvalidRequestJSONResponse }
func (GetVertex422JSONResponse) VisitGetVertexResponse ¶
func (response GetVertex422JSONResponse) VisitGetVertexResponse(w http.ResponseWriter) error
type GetVertex500JSONResponse ¶
type GetVertex500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (GetVertex500JSONResponse) VisitGetVertexResponse ¶
func (response GetVertex500JSONResponse) VisitGetVertexResponse(w http.ResponseWriter) error
type GetVertexDependencies200JSONResponse ¶
type GetVertexDependencies200JSONResponse Subgraph
func (GetVertexDependencies200JSONResponse) VisitGetVertexDependenciesResponse ¶
func (response GetVertexDependencies200JSONResponse) VisitGetVertexDependenciesResponse(w http.ResponseWriter) error
type GetVertexDependencies401JSONResponse ¶
func (GetVertexDependencies401JSONResponse) VisitGetVertexDependenciesResponse ¶
func (response GetVertexDependencies401JSONResponse) VisitGetVertexDependenciesResponse(w http.ResponseWriter) error
type GetVertexDependencies404JSONResponse ¶
type GetVertexDependencies404JSONResponse struct{ NotFoundJSONResponse }
func (GetVertexDependencies404JSONResponse) VisitGetVertexDependenciesResponse ¶
func (response GetVertexDependencies404JSONResponse) VisitGetVertexDependenciesResponse(w http.ResponseWriter) error
type GetVertexDependencies422JSONResponse ¶
type GetVertexDependencies422JSONResponse struct{ InvalidRequestJSONResponse }
func (GetVertexDependencies422JSONResponse) VisitGetVertexDependenciesResponse ¶
func (response GetVertexDependencies422JSONResponse) VisitGetVertexDependenciesResponse(w http.ResponseWriter) error
type GetVertexDependencies500JSONResponse ¶
type GetVertexDependencies500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (GetVertexDependencies500JSONResponse) VisitGetVertexDependenciesResponse ¶
func (response GetVertexDependencies500JSONResponse) VisitGetVertexDependenciesResponse(w http.ResponseWriter) error
type GetVertexDependenciesParams ¶
type GetVertexDependenciesParams struct {
// All Se verdadeiro, retorna todas as dependências do recurso, mesmo que não estejam conectadas diretamente.
All *bool `form:"all,omitempty" json:"all,omitempty"`
}
GetVertexDependenciesParams defines parameters for GetVertexDependencies.
type GetVertexDependenciesRequestObject ¶
type GetVertexDependenciesRequestObject struct {
Label Label `json:"label"`
Params GetVertexDependenciesParams
}
type GetVertexDependenciesResponseObject ¶
type GetVertexDependenciesResponseObject interface {
VisitGetVertexDependenciesResponse(w http.ResponseWriter) error
}
type GetVertexDependents200JSONResponse ¶
type GetVertexDependents200JSONResponse Subgraph
func (GetVertexDependents200JSONResponse) VisitGetVertexDependentsResponse ¶
func (response GetVertexDependents200JSONResponse) VisitGetVertexDependentsResponse(w http.ResponseWriter) error
type GetVertexDependents401JSONResponse ¶
func (GetVertexDependents401JSONResponse) VisitGetVertexDependentsResponse ¶
func (response GetVertexDependents401JSONResponse) VisitGetVertexDependentsResponse(w http.ResponseWriter) error
type GetVertexDependents404JSONResponse ¶
type GetVertexDependents404JSONResponse struct{ NotFoundJSONResponse }
func (GetVertexDependents404JSONResponse) VisitGetVertexDependentsResponse ¶
func (response GetVertexDependents404JSONResponse) VisitGetVertexDependentsResponse(w http.ResponseWriter) error
type GetVertexDependents422JSONResponse ¶
type GetVertexDependents422JSONResponse struct{ InvalidRequestJSONResponse }
func (GetVertexDependents422JSONResponse) VisitGetVertexDependentsResponse ¶
func (response GetVertexDependents422JSONResponse) VisitGetVertexDependentsResponse(w http.ResponseWriter) error
type GetVertexDependents500JSONResponse ¶
type GetVertexDependents500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (GetVertexDependents500JSONResponse) VisitGetVertexDependentsResponse ¶
func (response GetVertexDependents500JSONResponse) VisitGetVertexDependentsResponse(w http.ResponseWriter) error
type GetVertexDependentsParams ¶
type GetVertexDependentsParams struct {
// All Se verdadeiro, retorna todos os dependentes do recurso, mesmo que não estejam conectados diretamente.
All *bool `form:"all,omitempty" json:"all,omitempty"`
}
GetVertexDependentsParams defines parameters for GetVertexDependents.
type GetVertexDependentsRequestObject ¶
type GetVertexDependentsRequestObject struct {
Label Label `json:"label"`
Params GetVertexDependentsParams
}
type GetVertexDependentsResponseObject ¶
type GetVertexDependentsResponseObject interface {
VisitGetVertexDependentsResponse(w http.ResponseWriter) error
}
type GetVertexLineages200JSONResponse ¶
type GetVertexLineages200JSONResponse Subgraph
func (GetVertexLineages200JSONResponse) VisitGetVertexLineagesResponse ¶
func (response GetVertexLineages200JSONResponse) VisitGetVertexLineagesResponse(w http.ResponseWriter) error
type GetVertexLineages401JSONResponse ¶
func (GetVertexLineages401JSONResponse) VisitGetVertexLineagesResponse ¶
func (response GetVertexLineages401JSONResponse) VisitGetVertexLineagesResponse(w http.ResponseWriter) error
type GetVertexLineages404JSONResponse ¶
type GetVertexLineages404JSONResponse struct{ NotFoundJSONResponse }
func (GetVertexLineages404JSONResponse) VisitGetVertexLineagesResponse ¶
func (response GetVertexLineages404JSONResponse) VisitGetVertexLineagesResponse(w http.ResponseWriter) error
type GetVertexLineages422JSONResponse ¶
type GetVertexLineages422JSONResponse struct{ InvalidRequestJSONResponse }
func (GetVertexLineages422JSONResponse) VisitGetVertexLineagesResponse ¶
func (response GetVertexLineages422JSONResponse) VisitGetVertexLineagesResponse(w http.ResponseWriter) error
type GetVertexLineages500JSONResponse ¶
type GetVertexLineages500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (GetVertexLineages500JSONResponse) VisitGetVertexLineagesResponse ¶
func (response GetVertexLineages500JSONResponse) VisitGetVertexLineagesResponse(w http.ResponseWriter) error
type GetVertexLineagesRequestObject ¶
type GetVertexLineagesRequestObject struct {
Label Label `json:"label"`
}
type GetVertexLineagesResponseObject ¶
type GetVertexLineagesResponseObject interface {
VisitGetVertexLineagesResponse(w http.ResponseWriter) error
}
type GetVertexNeighbors200JSONResponse ¶
type GetVertexNeighbors200JSONResponse Subgraph
func (GetVertexNeighbors200JSONResponse) VisitGetVertexNeighborsResponse ¶
func (response GetVertexNeighbors200JSONResponse) VisitGetVertexNeighborsResponse(w http.ResponseWriter) error
type GetVertexNeighbors401JSONResponse ¶
func (GetVertexNeighbors401JSONResponse) VisitGetVertexNeighborsResponse ¶
func (response GetVertexNeighbors401JSONResponse) VisitGetVertexNeighborsResponse(w http.ResponseWriter) error
type GetVertexNeighbors404JSONResponse ¶
type GetVertexNeighbors404JSONResponse struct{ NotFoundJSONResponse }
func (GetVertexNeighbors404JSONResponse) VisitGetVertexNeighborsResponse ¶
func (response GetVertexNeighbors404JSONResponse) VisitGetVertexNeighborsResponse(w http.ResponseWriter) error
type GetVertexNeighbors422JSONResponse ¶
type GetVertexNeighbors422JSONResponse struct{ InvalidRequestJSONResponse }
func (GetVertexNeighbors422JSONResponse) VisitGetVertexNeighborsResponse ¶
func (response GetVertexNeighbors422JSONResponse) VisitGetVertexNeighborsResponse(w http.ResponseWriter) error
type GetVertexNeighbors500JSONResponse ¶
type GetVertexNeighbors500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (GetVertexNeighbors500JSONResponse) VisitGetVertexNeighborsResponse ¶
func (response GetVertexNeighbors500JSONResponse) VisitGetVertexNeighborsResponse(w http.ResponseWriter) error
type GetVertexNeighborsRequestObject ¶
type GetVertexNeighborsRequestObject struct {
Label Label `json:"label"`
}
type GetVertexNeighborsResponseObject ¶
type GetVertexNeighborsResponseObject interface {
VisitGetVertexNeighborsResponse(w http.ResponseWriter) error
}
type GetVertexRequestObject ¶
type GetVertexRequestObject struct {
Label Label `json:"label"`
}
type GetVertexResponseObject ¶
type GetVertexResponseObject interface {
VisitGetVertexResponse(w http.ResponseWriter) error
}
type InternalServerError ¶
type InternalServerError struct {
// Code Código do erro
Code int `json:"code"`
// Error Mensagem de erro
Error string `json:"error"`
}
InternalServerError defines model for InternalServerError.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type InvalidRequest ¶
type InvalidRequest struct {
// Code Código do erro
Code int `json:"code"`
// Error Mensagem de erro
Error string `json:"error"`
}
InvalidRequest defines model for InvalidRequest.
type NotFound ¶
type NotFound struct {
// Code Código do erro
Code int `json:"code"`
// Error Mensagem de erro
Error string `json:"error"`
}
NotFound defines model for NotFound.
type NotFoundJSONResponse ¶
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
ServeHTTP(w http.ResponseWriter, r *http.Request)
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// Resumo da infraestrutura
// (GET /summary)
Summary(w http.ResponseWriter, r *http.Request)
// Detalhes de um recurso
// (GET /vertices/{label})
GetVertex(w http.ResponseWriter, r *http.Request, label Label)
// Dependencias de um recurso
// (GET /vertices/{label}/dependencies)
GetVertexDependencies(w http.ResponseWriter, r *http.Request, label Label, params GetVertexDependenciesParams)
// Recursos dependentes
// (GET /vertices/{label}/dependents)
GetVertexDependents(w http.ResponseWriter, r *http.Request, label Label, params GetVertexDependentsParams)
// Trilhas
// (GET /vertices/{label}/lineages)
GetVertexLineages(w http.ResponseWriter, r *http.Request, label Label)
// Vizinhos
// (GET /vertices/{label}/neighbors)
GetVertexNeighbors(w http.ResponseWriter, r *http.Request, label Label)
// Caminho entre dois recursos
// (GET /vertices/{label}/path/{destination})
GetPath(w http.ResponseWriter, r *http.Request, label Label, destination string)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) GetPath ¶
func (siw *ServerInterfaceWrapper) GetPath(w http.ResponseWriter, r *http.Request)
GetPath operation middleware
func (*ServerInterfaceWrapper) GetVertex ¶
func (siw *ServerInterfaceWrapper) GetVertex(w http.ResponseWriter, r *http.Request)
GetVertex operation middleware
func (*ServerInterfaceWrapper) GetVertexDependencies ¶
func (siw *ServerInterfaceWrapper) GetVertexDependencies(w http.ResponseWriter, r *http.Request)
GetVertexDependencies operation middleware
func (*ServerInterfaceWrapper) GetVertexDependents ¶
func (siw *ServerInterfaceWrapper) GetVertexDependents(w http.ResponseWriter, r *http.Request)
GetVertexDependents operation middleware
func (*ServerInterfaceWrapper) GetVertexLineages ¶
func (siw *ServerInterfaceWrapper) GetVertexLineages(w http.ResponseWriter, r *http.Request)
GetVertexLineages operation middleware
func (*ServerInterfaceWrapper) GetVertexNeighbors ¶
func (siw *ServerInterfaceWrapper) GetVertexNeighbors(w http.ResponseWriter, r *http.Request)
GetVertexNeighbors operation middleware
func (*ServerInterfaceWrapper) Summary ¶
func (siw *ServerInterfaceWrapper) Summary(w http.ResponseWriter, r *http.Request)
Summary operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// Resumo da infraestrutura
// (GET /summary)
Summary(ctx context.Context, request SummaryRequestObject) (SummaryResponseObject, error)
// Detalhes de um recurso
// (GET /vertices/{label})
GetVertex(ctx context.Context, request GetVertexRequestObject) (GetVertexResponseObject, error)
// Dependencias de um recurso
// (GET /vertices/{label}/dependencies)
GetVertexDependencies(ctx context.Context, request GetVertexDependenciesRequestObject) (GetVertexDependenciesResponseObject, error)
// Recursos dependentes
// (GET /vertices/{label}/dependents)
GetVertexDependents(ctx context.Context, request GetVertexDependentsRequestObject) (GetVertexDependentsResponseObject, error)
// Trilhas
// (GET /vertices/{label}/lineages)
GetVertexLineages(ctx context.Context, request GetVertexLineagesRequestObject) (GetVertexLineagesResponseObject, error)
// Vizinhos
// (GET /vertices/{label}/neighbors)
GetVertexNeighbors(ctx context.Context, request GetVertexNeighborsRequestObject) (GetVertexNeighborsResponseObject, error)
// Caminho entre dois recursos
// (GET /vertices/{label}/path/{destination})
GetPath(ctx context.Context, request GetPathRequestObject) (GetPathResponseObject, error)
}
StrictServerInterface represents all server handlers.
func New ¶
func New(s *service.Service) StrictServerInterface
type Subgraph ¶
type Subgraph struct {
// All Se verdadeiro, retorna todos os itens do grafo, mesmo que não estejam conectados diretamente.
All bool `json:"all"`
// Edges Lista de relacionamentos que devem ser exibidos no grafo
Edges []Edge `json:"edges"`
// Highlights Elementos que devem ser destacados no grafo
Highlights []Vertex `json:"highlights"`
// Principal Um ativo de TI
Principal Vertex `json:"principal"`
// Title Nome que será exibido para a sessão do grafo
Title string `json:"title"`
// Vertices Lista de recursos que devem ser exibidos no grafo
Vertices []Vertex `json:"vertices"`
}
Subgraph Recursos e seus relacionamentos apresentados de forma útil para consumo e visualização.
type Summary ¶
type Summary struct {
// TotalVertices O número total de recursos presentes na base
TotalVertices int `json:"total_vertices"`
// UnhealthyVertices Lista de recursos não saudáveis
UnhealthyVertices []Vertex `json:"unhealthy_vertices"`
}
Summary Um sumário sobre o estado da infraestrutura
type Summary200JSONResponse ¶
type Summary200JSONResponse Summary
func (Summary200JSONResponse) VisitSummaryResponse ¶
func (response Summary200JSONResponse) VisitSummaryResponse(w http.ResponseWriter) error
type Summary401JSONResponse ¶
func (Summary401JSONResponse) VisitSummaryResponse ¶
func (response Summary401JSONResponse) VisitSummaryResponse(w http.ResponseWriter) error
type Summary500JSONResponse ¶
type Summary500JSONResponse struct {
InternalServerErrorJSONResponse
}
func (Summary500JSONResponse) VisitSummaryResponse ¶
func (response Summary500JSONResponse) VisitSummaryResponse(w http.ResponseWriter) error
type SummaryRequestObject ¶
type SummaryRequestObject struct {
}
type SummaryResponseObject ¶
type SummaryResponseObject interface {
VisitSummaryResponse(w http.ResponseWriter) error
}
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type Unauthorized ¶
Unauthorized defines model for Unauthorized.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type Vertex ¶
type Vertex struct {
// Class Classe ou Categoria do recurso
Class string `json:"class"`
// Label Nome que será exibido
Label string `json:"label"`
// LastCheck O timestamp da última verificação
LastCheck string `json:"last_check"`
// Status Saúde do recurso. Um recurso pode não estar saudável por causa de um de suas dependências.
Status VertexStatus `json:"status"`
}
Vertex Um ativo de TI
type VertexStatus ¶
type VertexStatus string
VertexStatus Saúde do recurso. Um recurso pode não estar saudável por causa de um de suas dependências.
const ( Error VertexStatus = "error" Ok VertexStatus = "ok" )
Defines values for VertexStatus.