Documentation ¶
Index ¶
- func IsJSON(b []byte) bool
- func IsJSONString(s string) bool
- type BuildContext
- func (bc *BuildContext) Deadline() (deadline time.Time, ok bool)
- func (bc *BuildContext) Done() <-chan struct{}
- func (bc *BuildContext) Err() error
- func (bc *BuildContext) IsNil() bool
- func (bc BuildContext) MarshalJSON() ([]byte, error)
- func (bc *BuildContext) MarshalJSONObject(enc *gojay.Encoder)
- func (bc *BuildContext) Value(key interface{}) interface{}
- type Display
- type Timing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildContext ¶
type BuildContext struct { BaseCooldown time.Duration Channel string Context context.Context CooldownThreshold time.Duration CurrentCooldown time.Duration DataText []byte ErrorText []byte Forced bool Iteration int Message string Next Timing Previous Timing }
func (*BuildContext) Deadline ¶
func (bc *BuildContext) Deadline() (deadline time.Time, ok bool)
implements context.Context.
func (*BuildContext) Done ¶
func (bc *BuildContext) Done() <-chan struct{}
implements context.Context.
func (*BuildContext) IsNil ¶
func (bc *BuildContext) IsNil() bool
func (BuildContext) MarshalJSON ¶
func (bc BuildContext) MarshalJSON() ([]byte, error)
func (*BuildContext) MarshalJSONObject ¶
func (bc *BuildContext) MarshalJSONObject(enc *gojay.Encoder)
func (*BuildContext) Value ¶
func (bc *BuildContext) Value(key interface{}) interface{}
implements context.Context.
Click to show internal directories.
Click to hide internal directories.