Documentation
¶
Index ¶
- func Bool(i bool) *bool
- func DecodeAttackState[T any](attackState attack_kit_api.AttackState, result *T) error
- func EncodeAttackState[T any](attackState T) (attack_kit_api.AttackState, error)
- func GetterAsHandler[T any](handler func() T) func(w http.ResponseWriter, r *http.Request, body []byte)
- func LogRequest(next func(w http.ResponseWriter, r *http.Request, body []byte)) http.HandlerFunc
- func PanicRecovery(next func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc
- func RegisterHttpHandler(path string, handler func(w http.ResponseWriter, r *http.Request, body []byte))
- func String(i string) *string
- func Strings(ss []string) []*string
- func ToError(title string, err error) attack_kit_api.AttackKitError
- func WriteAttackState[T any](w http.ResponseWriter, state T)
- func WriteBody(w http.ResponseWriter, response any)
- func WriteError(w http.ResponseWriter, err attack_kit_api.AttackKitError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAttackState ¶
func DecodeAttackState[T any](attackState attack_kit_api.AttackState, result *T) error
func EncodeAttackState ¶
func EncodeAttackState[T any](attackState T) (attack_kit_api.AttackState, error)
func GetterAsHandler ¶
func LogRequest ¶
func LogRequest(next func(w http.ResponseWriter, r *http.Request, body []byte)) http.HandlerFunc
func PanicRecovery ¶
func PanicRecovery(next func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc
func RegisterHttpHandler ¶
func ToError ¶
func ToError(title string, err error) attack_kit_api.AttackKitError
func WriteAttackState ¶
func WriteAttackState[T any](w http.ResponseWriter, state T)
func WriteBody ¶
func WriteBody(w http.ResponseWriter, response any)
func WriteError ¶
func WriteError(w http.ResponseWriter, err attack_kit_api.AttackKitError)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.