Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrExistQueue = errors.New("the queue already exist")
)
Error variables
Functions ¶
This section is empty.
Types ¶
type BenchmarkResult ¶
type BenchmarkResult struct { Valid bool `json:"valid"` RequestCount int `json:"request_count"` ElapsedTime int `json:"elapsed_time"` Response struct { Success int `json:"success"` Redirect int `json:"redirect"` ClientError int `json:"client_error"` ServerError int `json:"server_error"` Exception int `json:"exception"` } `json:"response"` Violations []struct { RequestName string `json:"request_type"` Cause string `json:"description"` Count int `json:"num"` } `json:"violations"` }
BenchmarkResult represent the benchmark result JSON
type CurrentQueue ¶
CurrentQueue represent current active queue
type Datastore ¶
Datastore represent MySQL adapter
func NewDatastore ¶
NewDatastore returns initialized Datastore
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue is client for the pubsub
func (*Queue) CurrentQueues ¶
CurrentQueues returns active current queues
type QueueResponse ¶
type QueueResponse struct { TeamID int BenchmarkResult BenchmarkResult CreatedAt time.Time SourceMessageID string Err error }
QueueResponse represent the message of the whole receive queue
type Score ¶
type Score struct { ID int `json:"id"` Summary string `json:"summary"` Score int `json:"score"` Detail string `json:"detail"` SubmittedAt timeStamp `json:"submitted_at"` }
Score represent benchmark score
type Team ¶
Team represent team configuration
func (*Team) Authentication ¶
Authentication returns Team when succeed authenticate
Click to show internal directories.
Click to hide internal directories.