Documentation ¶
Index ¶
- func AnalyticsHandler(log hclog.Logger) http.Handler
- func ApprovalHandler(cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, ...) http.Handler
- func DocumentHandler(cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, ...) http.Handler
- func DocumentTypesHandler(cfg config.Config, log hclog.Logger) http.Handler
- func DraftsDocumentHandler(cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, ...) http.Handler
- func DraftsHandler(cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, ...) http.Handler
- func MeHandler(l hclog.Logger, s *gw.Service) http.Handler
- func MeRecentlyViewedDocsHandler(cfg *config.Config, l hclog.Logger, db *gorm.DB) http.Handler
- func MeSubscriptionsHandler(cfg *config.Config, l hclog.Logger, s *gw.Service, db *gorm.DB) http.Handler
- func PeopleDataHandler(cfg *config.Config, log hclog.Logger, s *gw.Service) http.Handler
- func ProductsHandler(cfg *config.Config, a *algolia.Client, log hclog.Logger) http.Handler
- func ReviewHandler(cfg *config.Config, l hclog.Logger, ar *algolia.Client, aw *algolia.Client, ...) http.Handler
- type AnalyticsRequest
- type AnalyticsResponse
- type DocumentPatchRequest
- type DraftsPatchRequest
- type DraftsRequest
- type DraftsResponse
- type MeGetResponse
- type MeSubscriptionsPostRequest
- type PeopleDataRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyticsHandler ¶
Analytics handles user events for analytics
func ApprovalHandler ¶
func DocumentHandler ¶
func DocumentTypesHandler ¶
func DraftsDocumentHandler ¶
func DraftsHandler ¶
func MeRecentlyViewedDocsHandler ¶ added in v0.1.0
func MeSubscriptionsHandler ¶
func PeopleDataHandler ¶
PeopleDataHandler returns people related data from the Google API to the Hermes frontend.
func ProductsHandler ¶
ProductsHandler returns the product mappings to the Hermes frontend.
Types ¶
type AnalyticsRequest ¶
type AnalyticsResponse ¶
type AnalyticsResponse struct {
Recorded bool `json:"recorded"`
}
type DocumentPatchRequest ¶
type DocumentPatchRequest struct { Approvers *[]string `json:"approvers,omitempty"` Contributors *[]string `json:"contributors,omitempty"` CustomFields *[]document.CustomField `json:"customFields,omitempty"` Status *string `json:"status,omitempty"` Summary *string `json:"summary,omitempty"` // Tags []string `json:"tags,omitempty"` Title *string `json:"title,omitempty"` }
DocumentPatchRequest contains a subset of documents fields that are allowed to be updated with a PATCH request.
type DraftsPatchRequest ¶
type DraftsPatchRequest struct { Approvers *[]string `json:"approvers,omitempty"` Contributors *[]string `json:"contributors,omitempty"` CustomFields *[]document.CustomField `json:"customFields,omitempty"` Product *string `json:"product,omitempty"` Summary *string `json:"summary,omitempty"` // Tags []string `json:"tags,omitempty"` Title *string `json:"title,omitempty"` }
DraftsPatchRequest contains a subset of drafts fields that are allowed to be updated with a PATCH request.
type DraftsRequest ¶
type DraftsRequest struct { Approvers []string `json:"approvers,omitempty"` Contributors []string `json:"contributors,omitempty"` DocType string `json:"docType,omitempty"` Product string `json:"product,omitempty"` ProductAbbreviation string `json:"productAbbreviation,omitempty"` Summary string `json:"summary,omitempty"` Tags []string `json:"tags,omitempty"` Title string `json:"title"` }
type DraftsResponse ¶
type DraftsResponse struct {
ID string `json:"id"`
}
type MeGetResponse ¶ added in v0.1.0
type MeGetResponse struct { ID string `json:"id"` Email string `json:"email"` VerifiedEmail bool `json:"verified_email"` Name string `json:"name"` GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Picture string `json:"picture"` Locale string `json:"locale,omitempty"` HD string `json:"hd,omitempty"` }
MeGetResponse mimics the response from Google's `userinfo/me` API (https://www.googleapis.com/userinfo/v2/me).
type MeSubscriptionsPostRequest ¶
type MeSubscriptionsPostRequest struct {
Subscriptions []string `json:"subscriptions"`
}
type PeopleDataRequest ¶
type PeopleDataRequest struct {
Query string `json:"query,omitempty"`
}
PeopleDataRequest contains the fields that are allowed to make the POST request.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.