utils

package
v0.0.0-...-6b2d747 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTag

func CheckTag(field string) string

func ExtractInfoFromSigns

func ExtractInfoFromSigns(message string) string

func FormatLogMessage

func FormatLogMessage(message string) string

func GenerateAuthorizationHeader

func GenerateAuthorizationHeader(schema, username, realm, nonce, uri, response, opaque, qop, cnonce, nonce_count, algorithm string) string

func GenerateBranch

func GenerateBranch() string

func GenerateCSeq

func GenerateCSeq() string

func GenerateCallID

func GenerateCallID() string

func GenerateHA1

func GenerateHA1(username, realm, password string) string

func GenerateHA2

func GenerateHA2(method, uri string) string

func GenerateNonce

func GenerateNonce() string

func GenerateOpaque

func GenerateOpaque() string

func GenerateResponse

func GenerateResponse(HA1, nonce, nonce_count, opaque, qop, HA2 string) string

func GenerateTag

func GenerateTag() string

func MD5Hasher

func MD5Hasher(text string) string

func ParseCSeqHeader

func ParseCSeqHeader(header string) (map[string]any, error)

func ParseFromandToHeader

func ParseFromandToHeader(header string) (map[string]any, error)

func ParseWWWAuthenticateandAuthorizationHeader

func ParseWWWAuthenticateandAuthorizationHeader(header string) (map[string]any, error)

func WriteToLogFile

func WriteToLogFile(logfile string, itemToWrite string)

Types

type CustomWaitGroup

type CustomWaitGroup struct {
	// contains filtered or unexported fields
}

func (*CustomWaitGroup) Add

func (cwg *CustomWaitGroup) Add(delta int)

func (*CustomWaitGroup) Done

func (cwg *CustomWaitGroup) Done()

func (*CustomWaitGroup) GetCount

func (cwg *CustomWaitGroup) GetCount() int32

func (*CustomWaitGroup) Wait

func (cwg *CustomWaitGroup) Wait()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL