Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RespBadRequest = ApiResponse{
Status: "Failed",
Message: "There was an error processing the request, please check request format",
}
)
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type ApiResponse struct { Status string `json:"status"` Message string `json:"message"` Response *string `json:"response"` }
func BuildErrorResponse ¶
func BuildErrorResponse(status string, err error) ApiResponse
type Creator ¶
type CreatorWrapper ¶
type CreatorsWrapper ¶
type Language ¶
type Language struct { Cont Context `json:"@context"` Id int64 `json:"id,omitempty"` Name string `json:"name"` Year int32 `json:"year"` Wikipedia string `json:"wikipedia"` Imperative bool `json:"imperative"` ObjectOriented bool `json:"objectOriented"` Functional bool `json:"functional"` Procedural bool `json:"procedural"` Generic bool `json:"generic"` Reflective bool `json:"reflective"` Creators []Creator `json:"creators"` // list of links Links []Link `json:"links"` Slika string `json:"slika"` }
type LanguageWrapper ¶
type LanguagesWrapper ¶
type WikiResponse ¶
type WikiResponse struct { Handle string `json:"handle"` // list of links Links []Link `json:"links"` // contains filtered or unexported fields }
func (WikiResponse) FromModel ¶
func (w WikiResponse) FromModel(language models.Language) WikiResponse
func (WikiResponse) SetLinks ¶
func (w WikiResponse) SetLinks() WikiResponse
type WikiResponseWrapper ¶
type WikiResponseWrapper struct { Status string `json:"status"` Message string `json:"message"` Response WikiResponse `json:"response"` }
Click to show internal directories.
Click to hide internal directories.