node

package
v0.0.0-...-7208f07 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewImpl)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Generate() snowflake.ID
}

Generator declare node generator functions

func NewImpl

func NewImpl() (Generator, error)

type MockGenerator

type MockGenerator struct {
	mock.Mock
}

MockGenerator is an autogenerated mock type for the Generator type

func NewMockGenerator

func NewMockGenerator(t mockConstructorTestingTNewMockGenerator) *MockGenerator

NewMockGenerator creates a new instance of MockGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockGenerator) Generate

func (_m *MockGenerator) Generate() snowflake.ID

Generate provides a mock function with given fields:

Jump to

Keyboard shortcuts

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