Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncoderDecoder ¶
type JsonEncDec ¶
type JsonEncDec[T any] struct{}
func NewJsonEncoderDecoder ¶
func NewJsonEncoderDecoder[T any]() *JsonEncDec[T]
func (*JsonEncDec[T]) Decode ¶
func (encdec *JsonEncDec[T]) Decode(data []byte) (*T, error)
func (*JsonEncDec[T]) Encode ¶
func (encdec *JsonEncDec[T]) Encode(value T) ([]byte, error)
type TickWorker ¶
type TickWorker struct {
// contains filtered or unexported fields
}
func NewTickWorker ¶
func NewTickWorker(name string, interval int, stop chan struct{}, fn func(), wg *sync.WaitGroup) *TickWorker
func (*TickWorker) Start ¶
func (tw *TickWorker) Start()
func (*TickWorker) Stop ¶
func (tw *TickWorker) Stop()
Click to show internal directories.
Click to hide internal directories.