Documentation ¶
Index ¶
- Constants
- Variables
- func AddDataSource(c *middleware.Context, cmd m.AddDataSourceCommand)
- func AdminCreateUser(c *middleware.Context, form dtos.AdminCreateUserForm)
- func AdminDeleteUser(c *middleware.Context)
- func AdminGetSettings(c *middleware.Context)
- func AdminUpdateUserPassword(c *middleware.Context, form dtos.AdminUpdateUserPasswordForm)
- func AdminUpdateUserPermissions(c *middleware.Context, form dtos.AdminUpdateUserPermissionsForm)
- func CreateDashboardSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapshotCommand)
- func DeleteDashboard(c *middleware.Context)
- func DeleteDashboardSnapshot(c *middleware.Context)
- func DeleteDataSource(c *middleware.Context)
- func GetDashboard(c *middleware.Context)
- func GetDashboardFromJsonFile(c *middleware.Context)
- func GetDashboardSnapshot(c *middleware.Context)
- func GetDashboardTags(c *middleware.Context)
- func GetDataSourceById(c *middleware.Context)
- func GetDataSourcePlugins(c *middleware.Context)
- func GetDataSources(c *middleware.Context)
- func GetFrontendSettings(c *middleware.Context)
- func GetHomeDashboard(c *middleware.Context)
- func GetTestMetrics(c *middleware.Context)
- func Index(c *middleware.Context)
- func LoginApiPing(c *middleware.Context)
- func LoginView(c *middleware.Context)
- func Logout(c *middleware.Context)
- func NewReverseProxy(ds *m.DataSource, proxyPath string) *httputil.ReverseProxy
- func NotFoundHandler(c *middleware.Context)
- func OAuthLogin(ctx *middleware.Context)
- func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand)
- func ProxyDataSourceRequest(c *middleware.Context)
- func Register(r *macaron.Macaron)
- func RenderToPng(c *middleware.Context)
- func Search(c *middleware.Context)
- func UpdateDataSource(c *middleware.Context, cmd m.UpdateDataSourceCommand)
- type NormalResponse
- type Response
- func AddApiKey(c *middleware.Context, cmd m.AddApiKeyCommand) Response
- func AddOrgUser(c *middleware.Context, cmd m.AddOrgUserCommand) Response
- func AddOrgUserToCurrentOrg(c *middleware.Context, cmd m.AddOrgUserCommand) Response
- func ChangeUserPassword(c *middleware.Context, cmd m.ChangeUserPasswordCommand) Response
- func CreateOrg(c *middleware.Context, cmd m.CreateOrgCommand) Response
- func DeleteApiKey(c *middleware.Context) Response
- func GetApiKeys(c *middleware.Context) Response
- func GetOrgById(c *middleware.Context) Response
- func GetOrgCurrent(c *middleware.Context) Response
- func GetOrgUsers(c *middleware.Context) Response
- func GetOrgUsersForCurrentOrg(c *middleware.Context) Response
- func GetSignedInUser(c *middleware.Context) Response
- func GetSignedInUserOrgList(c *middleware.Context) Response
- func GetUserById(c *middleware.Context) Response
- func GetUserOrgList(c *middleware.Context) Response
- func LoginPost(c *middleware.Context, cmd dtos.LoginCommand) Response
- func RemoveOrgUser(c *middleware.Context) Response
- func RemoveOrgUserForCurrentOrg(c *middleware.Context) Response
- func ResetPassword(c *middleware.Context, form dtos.ResetUserPasswordForm) Response
- func SearchOrgs(c *middleware.Context) Response
- func SearchUsers(c *middleware.Context) Response
- func SendResetPasswordEmail(c *middleware.Context, form dtos.SendResetPasswordEmailForm) Response
- func SignUp(c *middleware.Context, cmd m.CreateUserCommand) Response
- func StarDashboard(c *middleware.Context) Response
- func UnstarDashboard(c *middleware.Context) Response
- func UpdateOrg(c *middleware.Context, cmd m.UpdateOrgCommand) Response
- func UpdateOrgCurrent(c *middleware.Context, cmd m.UpdateOrgCommand) Response
- func UpdateOrgUser(c *middleware.Context, cmd m.UpdateOrgUserCommand) Response
- func UpdateOrgUserForCurrentOrg(c *middleware.Context, cmd m.UpdateOrgUserCommand) Response
- func UpdateSignedInUser(c *middleware.Context, cmd m.UpdateUserCommand) Response
- func UpdateUser(c *middleware.Context, cmd m.UpdateUserCommand) Response
- func UserSetUsingOrg(c *middleware.Context) Response
Constants ¶
View Source
const (
VIEW_INDEX = "index"
)
Variables ¶
View Source
var ( NotFound = ApiError(404, "Not found", nil) ServerError = ApiError(500, "Server error", nil) )
Functions ¶
func AddDataSource ¶
func AddDataSource(c *middleware.Context, cmd m.AddDataSourceCommand)
func AdminCreateUser ¶
func AdminCreateUser(c *middleware.Context, form dtos.AdminCreateUserForm)
func AdminDeleteUser ¶
func AdminDeleteUser(c *middleware.Context)
func AdminGetSettings ¶
func AdminGetSettings(c *middleware.Context)
func AdminUpdateUserPassword ¶
func AdminUpdateUserPassword(c *middleware.Context, form dtos.AdminUpdateUserPasswordForm)
func AdminUpdateUserPermissions ¶
func AdminUpdateUserPermissions(c *middleware.Context, form dtos.AdminUpdateUserPermissionsForm)
func CreateDashboardSnapshot ¶
func CreateDashboardSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapshotCommand)
func DeleteDashboard ¶
func DeleteDashboard(c *middleware.Context)
func DeleteDashboardSnapshot ¶
func DeleteDashboardSnapshot(c *middleware.Context)
func DeleteDataSource ¶
func DeleteDataSource(c *middleware.Context)
func GetDashboard ¶
func GetDashboard(c *middleware.Context)
func GetDashboardFromJsonFile ¶
func GetDashboardFromJsonFile(c *middleware.Context)
func GetDashboardSnapshot ¶
func GetDashboardSnapshot(c *middleware.Context)
func GetDashboardTags ¶
func GetDashboardTags(c *middleware.Context)
func GetDataSourceById ¶
func GetDataSourceById(c *middleware.Context)
func GetDataSourcePlugins ¶
func GetDataSourcePlugins(c *middleware.Context)
func GetDataSources ¶
func GetDataSources(c *middleware.Context)
func GetFrontendSettings ¶
func GetFrontendSettings(c *middleware.Context)
func GetHomeDashboard ¶
func GetHomeDashboard(c *middleware.Context)
func GetTestMetrics ¶
func GetTestMetrics(c *middleware.Context)
func Index ¶
func Index(c *middleware.Context)
func LoginApiPing ¶
func LoginApiPing(c *middleware.Context)
func LoginView ¶
func LoginView(c *middleware.Context)
func Logout ¶
func Logout(c *middleware.Context)
func NewReverseProxy ¶
func NewReverseProxy(ds *m.DataSource, proxyPath string) *httputil.ReverseProxy
func NotFoundHandler ¶
func NotFoundHandler(c *middleware.Context)
func OAuthLogin ¶
func OAuthLogin(ctx *middleware.Context)
func PostDashboard ¶
func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand)
func ProxyDataSourceRequest ¶
func ProxyDataSourceRequest(c *middleware.Context)
ProxyDataSourceRequest TODO need to cache datasources
func RenderToPng ¶
func RenderToPng(c *middleware.Context)
func Search ¶
func Search(c *middleware.Context)
func UpdateDataSource ¶
func UpdateDataSource(c *middleware.Context, cmd m.UpdateDataSourceCommand)
Types ¶
type NormalResponse ¶
type NormalResponse struct {
// contains filtered or unexported fields
}
func ApiSuccess ¶
func ApiSuccess(message string) *NormalResponse
func Empty ¶
func Empty(status int) *NormalResponse
func Json ¶
func Json(status int, body interface{}) *NormalResponse
func Respond ¶
func Respond(status int, body interface{}) *NormalResponse
func (*NormalResponse) Cache ¶
func (r *NormalResponse) Cache(ttl string) *NormalResponse
func (*NormalResponse) Header ¶
func (r *NormalResponse) Header(key, value string) *NormalResponse
func (*NormalResponse) WriteTo ¶
func (r *NormalResponse) WriteTo(out http.ResponseWriter)
type Response ¶
type Response interface {
WriteTo(out http.ResponseWriter)
}
func AddApiKey ¶
func AddApiKey(c *middleware.Context, cmd m.AddApiKeyCommand) Response
func AddOrgUser ¶
func AddOrgUser(c *middleware.Context, cmd m.AddOrgUserCommand) Response
POST /api/orgs/:orgId/users
func AddOrgUserToCurrentOrg ¶
func AddOrgUserToCurrentOrg(c *middleware.Context, cmd m.AddOrgUserCommand) Response
POST /api/org/users
func ChangeUserPassword ¶
func ChangeUserPassword(c *middleware.Context, cmd m.ChangeUserPasswordCommand) Response
func CreateOrg ¶
func CreateOrg(c *middleware.Context, cmd m.CreateOrgCommand) Response
POST /api/orgs
func DeleteApiKey ¶
func DeleteApiKey(c *middleware.Context) Response
func GetApiKeys ¶
func GetApiKeys(c *middleware.Context) Response
func GetOrgUsersForCurrentOrg ¶
func GetOrgUsersForCurrentOrg(c *middleware.Context) Response
GET /api/org/users
func GetSignedInUser ¶
func GetSignedInUser(c *middleware.Context) Response
GET /api/user (current authenticated user)
func GetSignedInUserOrgList ¶
func GetSignedInUserOrgList(c *middleware.Context) Response
GET /api/user/orgs
func LoginPost ¶
func LoginPost(c *middleware.Context, cmd dtos.LoginCommand) Response
func RemoveOrgUser ¶
func RemoveOrgUser(c *middleware.Context) Response
DELETE /api/orgs/:orgId/users/:userId
func RemoveOrgUserForCurrentOrg ¶
func RemoveOrgUserForCurrentOrg(c *middleware.Context) Response
DELETE /api/org/users/:userId
func ResetPassword ¶
func ResetPassword(c *middleware.Context, form dtos.ResetUserPasswordForm) Response
func SearchOrgs ¶
func SearchOrgs(c *middleware.Context) Response
func SendResetPasswordEmail ¶
func SendResetPasswordEmail(c *middleware.Context, form dtos.SendResetPasswordEmailForm) Response
func SignUp ¶
func SignUp(c *middleware.Context, cmd m.CreateUserCommand) Response
POST /api/user/signup
func StarDashboard ¶
func StarDashboard(c *middleware.Context) Response
func UnstarDashboard ¶
func UnstarDashboard(c *middleware.Context) Response
func UpdateOrg ¶
func UpdateOrg(c *middleware.Context, cmd m.UpdateOrgCommand) Response
PUT /api/orgs/:orgId
func UpdateOrgCurrent ¶
func UpdateOrgCurrent(c *middleware.Context, cmd m.UpdateOrgCommand) Response
PUT /api/org
func UpdateOrgUser ¶
func UpdateOrgUser(c *middleware.Context, cmd m.UpdateOrgUserCommand) Response
PATCH /api/orgs/:orgId/users/:userId
func UpdateOrgUserForCurrentOrg ¶
func UpdateOrgUserForCurrentOrg(c *middleware.Context, cmd m.UpdateOrgUserCommand) Response
PATCH /api/org/users/:userId
func UpdateSignedInUser ¶
func UpdateSignedInUser(c *middleware.Context, cmd m.UpdateUserCommand) Response
POST /api/user
func UpdateUser ¶
func UpdateUser(c *middleware.Context, cmd m.UpdateUserCommand) Response
POST /api/users/:id
func UserSetUsingOrg ¶
func UserSetUsingOrg(c *middleware.Context) Response
POST /api/user/using/:id
Source Files ¶
Click to show internal directories.
Click to hide internal directories.