Back to godoc.org

Package config

v0.0.0-...-f1a69a6
Latest Go to latest

The latest major version is .

Published: Feb 3, 2020 | License: MIT | Module: github.com/chibiegg/isucon9-final/bench

Index

Constants

const (
	InitializeTimeout = 20 * time.Second
	APITimeout        = 5 * time.Second
	BenchmarkTimeout  = 60 * time.Second
)
const (
	AttackSearchTrainTimeout    = 20 * time.Second
	AttackListTrainSeatsTimeout = 20 * time.Second
)
const (
	// ApplicationPenaltyWeight はwebappのエラー1つにつき課せられるペナルティの重み
	ApplicationPenaltyWeight = 5

	// TrivialPenaltyThreshold は netエラーにペナルティが課せられる閾値
	TrivialPenaltyThreshold = 1
	// TrivialPenaltyWeight は netエラーに課せられるペナルティの重み
	TrivialPenaltyWeight = 5
	// TrivialPenaltyPerCount は netエラー幾つにつきペナルティが課せられるかの除数
	TrivialPenaltyPerCount = 1
)
const (
	// ReservedSeatExtraScore は 指定席の予約成功に加えられるボーナス
	ReservedSeatExtraScore = 10
)
const (
	// UserAgent はベンチマーク実施時に用いるユーザエージェントです
	UserAgent = "isutrain-benchmaker/0.0.1"
)
const (
	WorkloadMultiplier = 1
)

Variables

var (
	ErrAvailableDaysNotSpecified = errors.New("予約可能日数が指定されていません")
	ErrAvailableDaysTooLarge     = errors.New("予約日数が翌年の日付を含んでいます")
)
var (
	// 予約受付開始日
	ReservationStartDate time.Time = time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC)
	// 予約受付終了日
	ReservationEndDate time.Time
)
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)
)
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)
)
var (
	TargetBaseURL  = "http://localhost"
	PaymentBaseURL = "http://localhost:5000"
)
var (
	// initializeで設定される、予約日数
	AvailableDays int
)
var Debug bool
var Language = "unknown"
var SlackWebhookURL string

func IsGoldenweekEnded

func IsGoldenweekEnded() bool

func IsGoldenweekStarted

func IsGoldenweekStarted() bool

func IsOlympic

func IsOlympic() bool

func SetAvailReserveDays

func SetAvailReserveDays(days int) error

予約日数設定

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier