github.com/angenalZZZ/gofunc@v0.0.0-20210507121333-48ff1be3917b/data/id/snowid/over_cost_action_args.go (about)

     1  package snowid
     2  
     3  // OverCostActionArg .
     4  type OverCostActionArg struct {
     5  	ActionType             int32
     6  	TimeTick               int64
     7  	WorkerId               uint16
     8  	OverCostCountInOneTerm int32
     9  	GenCountInOneTerm      int32
    10  	TermIndex              int32
    11  }
    12  
    13  // OverCostActionArg .
    14  func (ora OverCostActionArg) OverCostActionArg(workerId uint16, timeTick int64, actionType int32, overCostCountInOneTerm int32, genCountWhenOverCost int32, index int32) {
    15  	ora.ActionType = actionType
    16  	ora.TimeTick = timeTick
    17  	ora.WorkerId = workerId
    18  	ora.OverCostCountInOneTerm = overCostCountInOneTerm
    19  	ora.GenCountInOneTerm = genCountWhenOverCost
    20  	ora.TermIndex = index
    21  }