Documentation ¶
Index ¶
Constants ¶
View Source
const (
// APICommonPrefix is a restful API prefix.
APICommonPrefix = "/api"
)
View Source
const ( // APIPrefix is a base path to restful APIs. APIPrefix = APICommonPrefix + "/v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option stands for functional parameter
func WithController ¶
func WithController(wc *controller.Controller) Option
WithController is an functional parameter to use a controller.
func WithGithubWebhook ¶
WithGithubWebhook is a functional parameter to use a github webhook secret.
func WithVersion ¶
func WithVersion(version interface{}) Option
WithVersion sets the version object. This will be used for health endpoint.
Click to show internal directories.
Click to hide internal directories.