uid

package
v0.0.0-...-fb5fdcc Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package uid 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(options ...Option) (string, error)
}

type MockUid

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

MockUid is a mock of Generator interface.

func NewMockUid

func NewMockUid(ctrl *gomock.Controller) *MockUid

NewMockUid creates a new mock instance.

func (*MockUid) EXPECT

func (m *MockUid) EXPECT() *MockUidMockRecorder

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

func (*MockUid) Generate

func (m *MockUid) Generate(options ...Option) (string, error)

Generate mocks base method.

type MockUidMockRecorder

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

MockUidMockRecorder is the mock recorder for MockUid.

func (*MockUidMockRecorder) Generate

func (mr *MockUidMockRecorder) Generate(options ...interface{}) *gomock.Call

Generate indicates an expected call of Generate.

type Option

type Option func(uid *Uid)

func WithNode

func WithNode(node int64) Option

func WithRand

func WithRand(rand *rand.Rand) Option

type Uid

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

func New

func New() *Uid

func (*Uid) Generate

func (u *Uid) Generate(options ...Option) (string, error)

Jump to

Keyboard shortcuts

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