Documentation ¶
Index ¶
Constants ¶
View Source
const TestECDSAPrivateKey256BitPEM = `` /* 240-byte string literal not displayed */
View Source
const TestECDSAPrivateKey384BitPEM = `` /* 305-byte string literal not displayed */
View Source
const TestECDSAPrivateKey521bitPEM = `` /* 383-byte string literal not displayed */
View Source
const TestECDSAPublicKey256BitPEM = `` /* 177-byte string literal not displayed */
View Source
const TestECDSAPublicKey384BitPEM = `` /* 214-byte string literal not displayed */
View Source
const TestECDSAPublicKey521BitPEM = `` /* 267-byte string literal not displayed */
View Source
const TestRSAPrivateKey2048BitPEM = `` /* 1707-byte string literal not displayed */
View Source
const TestRSAPrivateKeyInvalidPEM = `-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC7VJTUt9Us8cKj
-----END PRIVATE KEY-----`
View Source
const TestRSAPublicKey2048BitPEM = `` /* 450-byte string literal not displayed */
Variables ¶
View Source
var ErrTestError = errors.New("testz: test error")
Functions ¶
This section is empty.
Types ¶
type ReadWriter ¶
func NewReadWriter ¶
func NewReadWriter(buf *bytes.Buffer, n int, err error) *ReadWriter
type ResponseWriter ¶
type ResponseWriter struct { Buffer *bytes.Buffer N int Err error StatusCode int // contains filtered or unexported fields }
func NewResponseWriter ¶
func (*ResponseWriter) Header ¶
func (t *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (t *ResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.