anvil: Index | Files

package tap

import ""


Package Files



var (
    // NoOperationProcessor defines the copy source processor
    NoOperationProcessor = func(payload []byte) ([]byte, error) {
        return payload, nil

    // DefaultDecryptor is the default data decryptor for challenge
    DefaultDecryptor = NoOperationProcessor

type Option Uses

type Option func(*Options)

Option defines forge option contract option function

func WithDecryptor Uses

func WithDecryptor(decryptor ProcessorFunc) Option

WithDecryptor defines the challenge decryptor

type Options Uses

type Options struct {
    Decryptor ProcessorFunc

Options for challenge forging

type ProcessorFunc Uses

type ProcessorFunc func([]byte) ([]byte, error)

ProcessorFunc contract for challenge pre/post processing

Package tap is imported by 1 packages. Updated 2020-07-14. Refresh now. Tools for package owners.