Documentation ¶
Index ¶
- func BreakRead(s ReadDeadlineSetter) error
- func BreakReadWrite(s DeadlineSetter) error
- func BreakWrite(s WriteDeadlineSetter) error
- func Clone[T any](s []T) []T
- func Decode(buf []byte, out any) error
- func DecodeAs[T any](buf []byte) (T, error)
- func Encode(in any) ([]byte, error)
- func GetCancelStdin() (reader io.Reader, cancel func(), stdin *os.File)
- func Hash256(data []byte) []byte
- func HashSalt256(data []byte, salt []byte) []byte
- func MustEncode(in any) []byte
- func NewCtrlPacket(data []byte) *pb.Packet
- func NewDataPacket(data []byte) *pb.Packet
- func NewErrorPacket(s string) *pb.Packet
- func NewReadWriterCloser(r io.Reader, w io.Writer, c io.Closer) io.ReadWriteCloser
- func PromptHiddenInput(message string) (input []byte, err error)
- func RefreshRead(s ReadDeadlineSetter) error
- func RefreshReadWrite(s DeadlineSetter) error
- func RefreshWrite(s WriteDeadlineSetter) error
- func SplitEndpoint(endpoint string) (network string, address string)
- type DeadlineSetter
- type Gate
- type ReadDeadlineSetter
- type ReadWriteCloser
- type Set
- type WaitGroup
- func (wg *WaitGroup) ActiveNames() []string
- func (wg *WaitGroup) Add(n int)
- func (wg *WaitGroup) AddName(name string, n int)
- func (wg *WaitGroup) Done()
- func (wg *WaitGroup) DoneName(name string)
- func (wg *WaitGroup) Go(f func())
- func (wg *WaitGroup) GoName(name string, f func())
- func (wg *WaitGroup) Wait()
- type WriteDeadlineSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BreakRead ¶
func BreakRead(s ReadDeadlineSetter) error
func BreakReadWrite ¶
func BreakReadWrite(s DeadlineSetter) error
func BreakWrite ¶
func BreakWrite(s WriteDeadlineSetter) error
func HashSalt256 ¶
func MustEncode ¶
func NewCtrlPacket ¶
func NewDataPacket ¶
func NewErrorPacket ¶
func NewReadWriterCloser ¶
func PromptHiddenInput ¶
func RefreshRead ¶
func RefreshRead(s ReadDeadlineSetter) error
func RefreshReadWrite ¶
func RefreshReadWrite(s DeadlineSetter) error
func RefreshWrite ¶
func RefreshWrite(s WriteDeadlineSetter) error
func SplitEndpoint ¶
Types ¶
type DeadlineSetter ¶
type ReadDeadlineSetter ¶
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
func NewSet ¶
func NewSet[T comparable](values ...T) *Set[T]
type WaitGroup ¶
type WaitGroup struct { DoneFn func(string) DefaultName string // contains filtered or unexported fields }
func NewWaitGroup ¶
func NewWaitGroup() *WaitGroup
func (*WaitGroup) ActiveNames ¶
type WriteDeadlineSetter ¶
Click to show internal directories.
Click to hide internal directories.