Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MuxRouter ¶
func NewMuxRouter ¶
func NewMuxRouter(logger *zap.SugaredLogger, restHandler RestHandler) *MuxRouter
type ResetRequest ¶
type ResponseV2 ¶
type ResponseV2 struct {
Code int `json:"code,omitempty"`
Status string `json:"status,omitempty"`
Result interface{} `json:"result,omitempty"`
Errors []*util.ApiError `json:"errors,omitempty"`
}
global response body used across api
type RestHandler ¶
type RestHandler interface {
GetApiKey(w http.ResponseWriter, r *http.Request)
CheckForOptOut(w http.ResponseWriter, r *http.Request)
GetPostHogInfo(w http.ResponseWriter, r *http.Request)
}
type RestHandlerImpl ¶
type RestHandlerImpl struct {
// contains filtered or unexported fields
}
func NewRestHandlerImpl ¶
func NewRestHandlerImpl(logger *zap.SugaredLogger, telemetryEventService telemetry.TelemetryService) *RestHandlerImpl
func (*RestHandlerImpl) CheckForOptOut ¶
func (impl *RestHandlerImpl) CheckForOptOut(w http.ResponseWriter, r *http.Request)
func (*RestHandlerImpl) GetApiKey ¶
func (impl *RestHandlerImpl) GetApiKey(w http.ResponseWriter, r *http.Request)
func (*RestHandlerImpl) GetPostHogInfo ¶
func (impl *RestHandlerImpl) GetPostHogInfo(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.