Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitializeTimeout = 20 * time.Second APITimeout = 5 * time.Second BenchmarkTimeout = 60 * time.Second )
View Source
const ( AttackSearchTrainTimeout = 20 * time.Second AttackListTrainSeatsTimeout = 20 * time.Second )
View Source
const ( // ApplicationPenaltyWeight はwebappのエラー1つにつき課せられるペナルティの重み ApplicationPenaltyWeight = 5 // TrivialPenaltyThreshold は netエラーにペナルティが課せられる閾値 TrivialPenaltyThreshold = 1 // TrivialPenaltyWeight は netエラーに課せられるペナルティの重み TrivialPenaltyWeight = 5 // TrivialPenaltyPerCount は netエラー幾つにつきペナルティが課せられるかの除数 TrivialPenaltyPerCount = 1 )
View Source
const (
// ReservedSeatExtraScore は 指定席の予約成功に加えられるボーナス
ReservedSeatExtraScore = 10
)
View Source
const (
// UserAgent はベンチマーク実施時に用いるユーザエージェントです
UserAgent = "isutrain-benchmaker/0.0.1"
)
View Source
const (
WorkloadMultiplier = 1
)
Variables ¶
View Source
var ( ErrAvailableDaysNotSpecified = errors.New("予約可能日数が指定されていません") ErrAvailableDaysTooLarge = errors.New("予約日数が翌年の日付を含んでいます") )
View Source
var ( // 予約受付開始日 ReservationStartDate time.Time = time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC) // 予約受付終了日 ReservationEndDate time.Time )
View Source
var ( OlympicStartDate = time.Date(2020, 7, 24, 0, 0, 0, 0, time.UTC) OlympicEndDate = time.Date(2020, 8, 9, 0, 0, 0, 0, time.UTC) )
View Source
var ( GoldenWeekStartDate time.Time = time.Date(2020, 4, 29, 0, 0, 0, 0, time.Local) GoldenWeekEndDate time.Time = time.Date(2020, 5, 6, 15, 0, 0, 0, time.Local) )
View Source
var ( TargetBaseURL = "http://localhost" PaymentBaseURL = "http://localhost:5000" )
View Source
var ( // initializeで設定される、予約日数 AvailableDays int )
View Source
var Debug bool
View Source
var Language = "unknown"
View Source
var SlackWebhookURL string
Functions ¶
func IsGoldenweekEnded ¶
func IsGoldenweekEnded() bool
func IsGoldenweekStarted ¶
func IsGoldenweekStarted() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.