mocks

package
v0.35.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBer

type DBer struct {
	mock.Mock
}

DBer is an autogenerated mock type for the DBer type

func (*DBer) GetUsageByDateRange

func (_m *DBer) GetUsageByDateRange(startDate time.Time, endDate time.Time) ([]*usage.Usage, error)

GetUsageByDateRange provides a mock function with given fields: startDate, endDate

func (*DBer) GetUsageByPrincipal

func (_m *DBer) GetUsageByPrincipal(startDate time.Time, principalID string) ([]*usage.Usage, error)

GetUsageByPrincipal provides a mock function with given fields: startDate, principalID

func (*DBer) PutUsage

func (_m *DBer) PutUsage(input usage.Usage) error

PutUsage provides a mock function with given fields: input

type MultipleReader

type MultipleReader struct {
	mock.Mock
}

MultipleReader is an autogenerated mock type for the MultipleReader type

func (*MultipleReader) List

func (_m *MultipleReader) List(query *usage.Usage) (*usage.Usages, error)

List provides a mock function with given fields: query

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func (*Reader) Get

func (_m *Reader) Get(startDate int64, principalID string) (*usage.Usage, error)

Get provides a mock function with given fields: startDate, principalID

func (*Reader) List

func (_m *Reader) List(query *usage.Usage) (*usage.Usages, error)

List provides a mock function with given fields: query

type ReaderWriter

type ReaderWriter struct {
	mock.Mock
}

ReaderWriter is an autogenerated mock type for the ReaderWriter type

func (*ReaderWriter) Get

func (_m *ReaderWriter) Get(startDate int64, principalID string) (*usage.Usage, error)

Get provides a mock function with given fields: startDate, principalID

func (*ReaderWriter) List

func (_m *ReaderWriter) List(query *usage.Usage) (*usage.Usages, error)

List provides a mock function with given fields: query

func (*ReaderWriter) Write

func (_m *ReaderWriter) Write(i *usage.Usage) error

Write provides a mock function with given fields: i

type SingleReader

type SingleReader struct {
	mock.Mock
}

SingleReader is an autogenerated mock type for the SingleReader type

func (*SingleReader) Get

func (_m *SingleReader) Get(startDate int64, principalID string) (*usage.Usage, error)

Get provides a mock function with given fields: startDate, principalID

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func (*Writer) Write

func (_m *Writer) Write(i *usage.Usage) error

Write provides a mock function with given fields: i

Jump to

Keyboard shortcuts

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