random

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package random implements a sidecred.Provider for random strings, and can be used for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(seed int64, options ...option) sidecred.Provider

New returns a new sidecred.Provider for random strings.

func WithRotationInterval

func WithRotationInterval(duration time.Duration) option

WithRotationInterval sets the interval at which the random string should be rotated.

Types

type RequestConfig

type RequestConfig struct {
	Length int `json:"length"`
}

RequestConfig ...

Jump to

Keyboard shortcuts

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