Documentation
¶
Index ¶
- func RegisterHandlers(e *echo.Echo, serv *Serv)
- func StartUp(bind string)
- type ConceptInputsPayload
- type ConceptMetadataPayload
- type ConceptPayload
- type ConceptsMapPayload
- type ConceptsPayload
- type MessagePayload
- type RepositoriesMapPayload
- type RepositoriesPayload
- type RepositoryPayload
- type Serv
- func (serv Serv) GetConcept(ctx echo.Context) error
- func (serv Serv) GetConcepts(ctx echo.Context) error
- func (serv Serv) GetRepositories(ctx echo.Context) error
- func (serv Serv) GetRepository(ctx echo.Context) error
- func (serv Serv) GetRepositoryConcept(ctx echo.Context) error
- func (serv Serv) GetRepositoryConcepts(ctx echo.Context) error
- func (serv Serv) PutRepository(ctx echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
Types ¶
type ConceptInputsPayload ¶
type ConceptInputsPayload struct {
ID string `json:"id"`
Type string `json:"type"`
Mandatory bool `json:"mandatory"`
}
func ConceptInputsPayloadFrom ¶
func ConceptInputsPayloadFrom(c concepts.Concept) []ConceptInputsPayload
type ConceptMetadataPayload ¶
type ConceptPayload ¶
type ConceptPayload struct {
Type string `json:"type"`
Metadata ConceptMetadataPayload `json:"maintainer,omitempty"`
Inputs []ConceptInputsPayload `json:"inputs,omitempty"`
}
type ConceptsMapPayload ¶
type ConceptsMapPayload map[string]ConceptPayload
type ConceptsPayload ¶
type ConceptsPayload struct {
Concepts ConceptsMapPayload `json:"concepts"`
}
func NewConceptsPayload ¶
func NewConceptsPayload() ConceptsPayload
type MessagePayload ¶
type MessagePayload struct {
Message string `json:"message"`
}
func NewMessage ¶
func NewMessage(msg string, e ...interface{}) MessagePayload
type RepositoriesMapPayload ¶
type RepositoriesMapPayload map[string]RepositoryPayload
type RepositoriesPayload ¶
type RepositoriesPayload struct {
Repositories RepositoriesMapPayload `json:"repositories"`
}
func NewRepositoriesPayload ¶
func NewRepositoriesPayload() RepositoriesPayload
type RepositoryPayload ¶
Click to show internal directories.
Click to hide internal directories.