po3rin/github_link_creator

View on GitHub
handler/response.go

Summary

Maintainability
A
0 mins
Test Coverage
package handler

var documentationURL = "https://github.com/po3rin/github_link_creator"

// Response is common response format.
type Response struct {
    Value         string `json:"value"`
    CardURL       string `json:"card_url"`
    RepositoryURL string `json:"repository_url"`
}

// ErrorResponse is common errror response format.
type ErrorResponse struct {
    Message          string `json:"message"`
    DocumentationURL string `json:"documentaion_url"`
}