mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clock

func Clock() clock.Clock

Clock returns a mock clock.

func Conns

func Conns(hlp *riposo.Helpers) *conn.Set

Conns returns an in-memory connections.

func Helpers

func Helpers() *riposo.Helpers

Helpers inits a mock helpers.

func Request

func Request(txn *api.Txn, method, path string, body io.Reader) *http.Request

Request creates a HTTP mock request with a transaction context.

func Txn

func Txn() *api.Txn

Txn inits a mock API transaction.

func User

func User(id string, principals ...string) *api.User

User inits a new mock user with a given user ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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