mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
4dd7b7a82d
* Chore: Remove more unused Go code Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
49 lines
1.1 KiB
Go
49 lines
1.1 KiB
Go
package events
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Events can be passed to external systems via for example AMQP
|
|
// Treat these events as basically DTOs so changes has to be backward compatible
|
|
|
|
type OrgCreated struct {
|
|
Timestamp time.Time `json:"timestamp"`
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type OrgUpdated struct {
|
|
Timestamp time.Time `json:"timestamp"`
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type UserCreated struct {
|
|
Timestamp time.Time `json:"timestamp"`
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Login string `json:"login"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type SignUpStarted struct {
|
|
Timestamp time.Time `json:"timestamp"`
|
|
Email string `json:"email"`
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
type SignUpCompleted struct {
|
|
Timestamp time.Time `json:"timestamp"`
|
|
Name string `json:"name"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type UserUpdated struct {
|
|
Timestamp time.Time `json:"timestamp"`
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Login string `json:"login"`
|
|
Email string `json:"email"`
|
|
}
|