Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceByteToString ¶
func StringToSliceByte ¶
Types ¶
type SimpleChain ¶
type SimpleChain[T any] struct { // contains filtered or unexported fields }
func NewSimpleChain ¶
func NewSimpleChain[T any]() *SimpleChain[T]
func (*SimpleChain[T]) Add ¶
func (s *SimpleChain[T]) Add(h Handler[T])
func (*SimpleChain[T]) Execute ¶
func (s *SimpleChain[T]) Execute(ctx context.Context, value T)
type SimpleSubject ¶
type SimpleSubject[T any] struct { // contains filtered or unexported fields }
func NewSimpleSubject ¶
func NewSimpleSubject[T any]() *SimpleSubject[T]
func (*SimpleSubject[T]) AsyncNotify ¶
func (s *SimpleSubject[T]) AsyncNotify(ctx context.Context, value T)
func (*SimpleSubject[T]) Notify ¶
func (s *SimpleSubject[T]) Notify(ctx context.Context, value T)
func (*SimpleSubject[T]) Register ¶
func (s *SimpleSubject[T]) Register(o Observer[T])
func (*SimpleSubject[T]) Remove ¶
func (s *SimpleSubject[T]) Remove(o Observer[T])
Click to show internal directories.
Click to hide internal directories.