token

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package token is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Generate(length int) (string, error)
}

Generator is an interface that defines a token generator.

func NewGenerator

func NewGenerator() Generator

NewGenerator returns a new token generator instance.

type MockGenerator

type MockGenerator struct {
	// contains filtered or unexported fields
}

MockGenerator is a mock of Generator interface.

func NewMockGenerator

func NewMockGenerator(ctrl *gomock.Controller) *MockGenerator

NewMockGenerator creates a new mock instance.

func (*MockGenerator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGenerator) Generate

func (m *MockGenerator) Generate(length int) (string, error)

Generate mocks base method.

type MockGeneratorMockRecorder

type MockGeneratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockGeneratorMockRecorder is the mock recorder for MockGenerator.

func (*MockGeneratorMockRecorder) Generate

func (mr *MockGeneratorMockRecorder) Generate(length interface{}) *gomock.Call

Generate indicates an expected call of Generate.

Jump to

Keyboard shortcuts

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