mocks

package
v1.17.16 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLPermissionChecker

type ACLPermissionChecker struct {
	mock.Mock
}

ACLPermissionChecker is an autogenerated mock type for the ACLPermissionChecker type

func NewACLPermissionChecker added in v1.11.21

func NewACLPermissionChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *ACLPermissionChecker

NewACLPermissionChecker creates a new instance of ACLPermissionChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ACLPermissionChecker) CheckPermission

func (_m *ACLPermissionChecker) CheckPermission(ctx context.Context, userID string, permissionCode string) (string, error)

CheckPermission provides a mock function with given fields: ctx, userID, permissionCode

type BasicAuthValidator added in v1.13.9

type BasicAuthValidator struct {
	mock.Mock
}

BasicAuthValidator is an autogenerated mock type for the BasicAuthValidator type

func NewBasicAuthValidator added in v1.13.9

func NewBasicAuthValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *BasicAuthValidator

NewBasicAuthValidator creates a new instance of BasicAuthValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BasicAuthValidator) ValidateBasic added in v1.13.9

func (_m *BasicAuthValidator) ValidateBasic(ctx context.Context, username string, password string) error

ValidateBasic provides a mock function with given fields: ctx, username, password

type Broker

type Broker struct {
	mock.Mock
}

Broker is an autogenerated mock type for the Broker type

func NewBroker added in v1.11.21

func NewBroker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Broker

NewBroker creates a new instance of Broker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Broker) Disconnect

func (_m *Broker) Disconnect(ctx context.Context) error

Disconnect provides a mock function with given fields: ctx

func (*Broker) GetName added in v1.7.2

func (_m *Broker) GetName() types.Worker

GetName provides a mock function with given fields:

func (*Broker) GetPublisher added in v1.7.0

func (_m *Broker) GetPublisher() interfaces.Publisher

GetPublisher provides a mock function with given fields:

func (*Broker) Health

func (_m *Broker) Health() map[string]error

Health provides a mock function with given fields:

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func NewCache added in v1.11.21

func NewCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cache

NewCache creates a new instance of Cache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Cache) Delete

func (_m *Cache) Delete(ctx context.Context, key string) error

Delete provides a mock function with given fields: ctx, key

func (*Cache) Exists

func (_m *Cache) Exists(ctx context.Context, key string) (bool, error)

Exists provides a mock function with given fields: ctx, key

func (*Cache) Get

func (_m *Cache) Get(ctx context.Context, key string) ([]byte, error)

Get provides a mock function with given fields: ctx, key

func (*Cache) GetKeys

func (_m *Cache) GetKeys(ctx context.Context, pattern string) ([]string, error)

GetKeys provides a mock function with given fields: ctx, pattern

func (*Cache) GetTTL added in v1.7.9

func (_m *Cache) GetTTL(ctx context.Context, key string) (time.Duration, error)

GetTTL provides a mock function with given fields: ctx, key

func (*Cache) Set

func (_m *Cache) Set(ctx context.Context, key string, value interface{}, expire time.Duration) error

Set provides a mock function with given fields: ctx, key, value, expire

type Closer

type Closer struct {
	mock.Mock
}

Closer is an autogenerated mock type for the Closer type

func NewCloser added in v1.11.21

func NewCloser(t interface {
	mock.TestingT
	Cleanup(func())
}) *Closer

NewCloser creates a new instance of Closer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Closer) Disconnect

func (_m *Closer) Disconnect(ctx context.Context) error

Disconnect provides a mock function with given fields: ctx

type GRPCHandler

type GRPCHandler struct {
	mock.Mock
}

GRPCHandler is an autogenerated mock type for the GRPCHandler type

func NewGRPCHandler added in v1.11.21

func NewGRPCHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *GRPCHandler

NewGRPCHandler creates a new instance of GRPCHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GRPCHandler) Register

func (_m *GRPCHandler) Register(server *grpc.Server, middlewareGroup *types.MiddlewareGroup)

Register provides a mock function with given fields: server, middlewareGroup

type GRPCMiddleware

type GRPCMiddleware struct {
	mock.Mock
}

GRPCMiddleware is an autogenerated mock type for the GRPCMiddleware type

func NewGRPCMiddleware added in v1.11.21

func NewGRPCMiddleware(t interface {
	mock.TestingT
	Cleanup(func())
}) *GRPCMiddleware

NewGRPCMiddleware creates a new instance of GRPCMiddleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GRPCMiddleware) GRPCBasicAuth

func (_m *GRPCMiddleware) GRPCBasicAuth(ctx context.Context) (context.Context, error)

GRPCBasicAuth provides a mock function with given fields: ctx

func (*GRPCMiddleware) GRPCBearerAuth

func (_m *GRPCMiddleware) GRPCBearerAuth(ctx context.Context) (context.Context, error)

GRPCBearerAuth provides a mock function with given fields: ctx

func (*GRPCMiddleware) GRPCMultipleAuth added in v1.14.6

func (_m *GRPCMiddleware) GRPCMultipleAuth(ctx context.Context) (context.Context, error)

GRPCMultipleAuth provides a mock function with given fields: ctx

func (*GRPCMiddleware) GRPCPermissionACL

func (_m *GRPCMiddleware) GRPCPermissionACL(permissionCode string) types.MiddlewareFunc

GRPCPermissionACL provides a mock function with given fields: permissionCode

type GraphQLHandler

type GraphQLHandler struct {
	mock.Mock
}

GraphQLHandler is an autogenerated mock type for the GraphQLHandler type

func NewGraphQLHandler added in v1.11.21

func NewGraphQLHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *GraphQLHandler

NewGraphQLHandler creates a new instance of GraphQLHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GraphQLHandler) Mutation

func (_m *GraphQLHandler) Mutation() interface{}

Mutation provides a mock function with given fields:

func (*GraphQLHandler) Query

func (_m *GraphQLHandler) Query() interface{}

Query provides a mock function with given fields:

func (*GraphQLHandler) Schema added in v1.16.0

func (_m *GraphQLHandler) Schema() string

Schema provides a mock function with given fields:

func (*GraphQLHandler) Subscription

func (_m *GraphQLHandler) Subscription() interface{}

Subscription provides a mock function with given fields:

type GraphQLMiddleware

type GraphQLMiddleware struct {
	mock.Mock
}

GraphQLMiddleware is an autogenerated mock type for the GraphQLMiddleware type

func NewGraphQLMiddleware added in v1.11.21

func NewGraphQLMiddleware(t interface {
	mock.TestingT
	Cleanup(func())
}) *GraphQLMiddleware

NewGraphQLMiddleware creates a new instance of GraphQLMiddleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GraphQLMiddleware) GraphQLAuth added in v1.12.1

func (_m *GraphQLMiddleware) GraphQLAuth(ctx context.Context, directive *types.Directive, input interface{}) (context.Context, error)

GraphQLAuth provides a mock function with given fields: ctx, directive, input

func (*GraphQLMiddleware) GraphQLPermissionACL

func (_m *GraphQLMiddleware) GraphQLPermissionACL(ctx context.Context, directive *types.Directive, input interface{}) (context.Context, error)

GraphQLPermissionACL provides a mock function with given fields: ctx, directive, input

type HTTPMiddleware

type HTTPMiddleware struct {
	mock.Mock
}

HTTPMiddleware is an autogenerated mock type for the HTTPMiddleware type

func NewHTTPMiddleware added in v1.11.21

func NewHTTPMiddleware(t interface {
	mock.TestingT
	Cleanup(func())
}) *HTTPMiddleware

NewHTTPMiddleware creates a new instance of HTTPMiddleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HTTPMiddleware) HTTPBasicAuth

func (_m *HTTPMiddleware) HTTPBasicAuth(next http.Handler) http.Handler

HTTPBasicAuth provides a mock function with given fields: next

func (*HTTPMiddleware) HTTPBearerAuth

func (_m *HTTPMiddleware) HTTPBearerAuth(next http.Handler) http.Handler

HTTPBearerAuth provides a mock function with given fields: next

func (*HTTPMiddleware) HTTPCache added in v1.14.6

func (_m *HTTPMiddleware) HTTPCache(next http.Handler) http.Handler

HTTPCache provides a mock function with given fields: next

func (*HTTPMiddleware) HTTPMultipleAuth

func (_m *HTTPMiddleware) HTTPMultipleAuth(next http.Handler) http.Handler

HTTPMultipleAuth provides a mock function with given fields: next

func (*HTTPMiddleware) HTTPPermissionACL

func (_m *HTTPMiddleware) HTTPPermissionACL(permissionCode string) func(http.Handler) http.Handler

HTTPPermissionACL provides a mock function with given fields: permissionCode

type Locker added in v1.14.8

type Locker struct {
	mock.Mock
}

Locker is an autogenerated mock type for the Locker type

func NewLocker added in v1.14.8

func NewLocker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Locker

NewLocker creates a new instance of Locker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Locker) Disconnect added in v1.14.8

func (_m *Locker) Disconnect(ctx context.Context) error

Disconnect provides a mock function with given fields: ctx

func (*Locker) HasBeenLocked added in v1.14.8

func (_m *Locker) HasBeenLocked(key string) bool

HasBeenLocked provides a mock function with given fields: key

func (*Locker) IsLocked added in v1.14.8

func (_m *Locker) IsLocked(key string) bool

IsLocked provides a mock function with given fields: key

func (*Locker) Lock added in v1.14.8

func (_m *Locker) Lock(key string, timeout time.Duration) (func(), error)

Lock provides a mock function with given fields: key, timeout

func (*Locker) Reset added in v1.14.8

func (_m *Locker) Reset(key string)

Reset provides a mock function with given fields: key

func (*Locker) Unlock added in v1.14.8

func (_m *Locker) Unlock(key string)

Unlock provides a mock function with given fields: key

type Middleware

type Middleware struct {
	mock.Mock
}

Middleware is an autogenerated mock type for the Middleware type

func NewMiddleware added in v1.11.21

func NewMiddleware(t interface {
	mock.TestingT
	Cleanup(func())
}) *Middleware

NewMiddleware creates a new instance of Middleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Middleware) Basic

func (_m *Middleware) Basic(ctx context.Context, authKey string) error

Basic provides a mock function with given fields: ctx, authKey

func (*Middleware) Bearer

func (_m *Middleware) Bearer(ctx context.Context, token string) (*candishared.TokenClaim, error)

Bearer provides a mock function with given fields: ctx, token

func (*Middleware) GRPCBasicAuth

func (_m *Middleware) GRPCBasicAuth(ctx context.Context) (context.Context, error)

GRPCBasicAuth provides a mock function with given fields: ctx

func (*Middleware) GRPCBearerAuth

func (_m *Middleware) GRPCBearerAuth(ctx context.Context) (context.Context, error)

GRPCBearerAuth provides a mock function with given fields: ctx

func (*Middleware) GRPCMultipleAuth added in v1.14.6

func (_m *Middleware) GRPCMultipleAuth(ctx context.Context) (context.Context, error)

GRPCMultipleAuth provides a mock function with given fields: ctx

func (*Middleware) GRPCPermissionACL

func (_m *Middleware) GRPCPermissionACL(permissionCode string) types.MiddlewareFunc

GRPCPermissionACL provides a mock function with given fields: permissionCode

func (*Middleware) GraphQLAuth added in v1.12.1

func (_m *Middleware) GraphQLAuth(ctx context.Context, directive *graphql_gotypes.Directive, input interface{}) (context.Context, error)

GraphQLAuth provides a mock function with given fields: ctx, directive, input

func (*Middleware) GraphQLPermissionACL

func (_m *Middleware) GraphQLPermissionACL(ctx context.Context, directive *graphql_gotypes.Directive, input interface{}) (context.Context, error)

GraphQLPermissionACL provides a mock function with given fields: ctx, directive, input

func (*Middleware) HTTPBasicAuth

func (_m *Middleware) HTTPBasicAuth(next http.Handler) http.Handler

HTTPBasicAuth provides a mock function with given fields: next

func (*Middleware) HTTPBearerAuth

func (_m *Middleware) HTTPBearerAuth(next http.Handler) http.Handler

HTTPBearerAuth provides a mock function with given fields: next

func (*Middleware) HTTPCache added in v1.14.6

func (_m *Middleware) HTTPCache(next http.Handler) http.Handler

HTTPCache provides a mock function with given fields: next

func (*Middleware) HTTPMultipleAuth

func (_m *Middleware) HTTPMultipleAuth(next http.Handler) http.Handler

HTTPMultipleAuth provides a mock function with given fields: next

func (*Middleware) HTTPPermissionACL

func (_m *Middleware) HTTPPermissionACL(permissionCode string) func(http.Handler) http.Handler

HTTPPermissionACL provides a mock function with given fields: permissionCode

type MongoDatabase

type MongoDatabase struct {
	mock.Mock
}

MongoDatabase is an autogenerated mock type for the MongoDatabase type

func NewMongoDatabase added in v1.11.21

func NewMongoDatabase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MongoDatabase

NewMongoDatabase creates a new instance of MongoDatabase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MongoDatabase) Disconnect

func (_m *MongoDatabase) Disconnect(ctx context.Context) error

Disconnect provides a mock function with given fields: ctx

func (*MongoDatabase) Health

func (_m *MongoDatabase) Health() map[string]error

Health provides a mock function with given fields:

func (*MongoDatabase) ReadDB

func (_m *MongoDatabase) ReadDB() *mongo.Database

ReadDB provides a mock function with given fields:

func (*MongoDatabase) WriteDB

func (_m *MongoDatabase) WriteDB() *mongo.Database

WriteDB provides a mock function with given fields:

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher added in v1.11.21

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Publisher

NewPublisher creates a new instance of Publisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Publisher) PublishMessage

func (_m *Publisher) PublishMessage(ctx context.Context, args *candishared.PublisherArgument) error

PublishMessage provides a mock function with given fields: ctx, args

type RESTHandler

type RESTHandler struct {
	mock.Mock
}

RESTHandler is an autogenerated mock type for the RESTHandler type

func NewRESTHandler added in v1.11.21

func NewRESTHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *RESTHandler

NewRESTHandler creates a new instance of RESTHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RESTHandler) Mount

func (_m *RESTHandler) Mount(group interfaces.RESTRouter)

Mount provides a mock function with given fields: group

type RESTRouter added in v1.15.0

type RESTRouter struct {
	mock.Mock
}

RESTRouter is an autogenerated mock type for the RESTRouter type

func NewRESTRouter added in v1.15.0

func NewRESTRouter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RESTRouter

NewRESTRouter creates a new instance of RESTRouter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RESTRouter) CONNECT added in v1.15.0

func (_m *RESTRouter) CONNECT(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

CONNECT provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) DELETE added in v1.15.0

func (_m *RESTRouter) DELETE(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

DELETE provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) GET added in v1.15.0

func (_m *RESTRouter) GET(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

GET provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) Group added in v1.15.0

func (_m *RESTRouter) Group(pattern string, middlewares ...func(http.Handler) http.Handler) interfaces.RESTRouter

Group provides a mock function with given fields: pattern, middlewares

func (*RESTRouter) HEAD added in v1.15.0

func (_m *RESTRouter) HEAD(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

HEAD provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) HandleFunc added in v1.15.0

func (_m *RESTRouter) HandleFunc(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

HandleFunc provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) OPTIONS added in v1.15.0

func (_m *RESTRouter) OPTIONS(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

OPTIONS provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) PATCH added in v1.15.0

func (_m *RESTRouter) PATCH(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

PATCH provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) POST added in v1.15.0

func (_m *RESTRouter) POST(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

POST provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) PUT added in v1.15.0

func (_m *RESTRouter) PUT(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

PUT provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) TRACE added in v1.15.0

func (_m *RESTRouter) TRACE(pattern string, h http.HandlerFunc, middlewares ...func(http.Handler) http.Handler)

TRACE provides a mock function with given fields: pattern, h, middlewares

func (*RESTRouter) Use added in v1.15.0

func (_m *RESTRouter) Use(middlewares ...func(http.Handler) http.Handler)

Use provides a mock function with given fields: middlewares

type RSAKey

type RSAKey struct {
	mock.Mock
}

RSAKey is an autogenerated mock type for the RSAKey type

func NewRSAKey added in v1.11.21

func NewRSAKey(t interface {
	mock.TestingT
	Cleanup(func())
}) *RSAKey

NewRSAKey creates a new instance of RSAKey. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RSAKey) PrivateKey

func (_m *RSAKey) PrivateKey() *rsa.PrivateKey

PrivateKey provides a mock function with given fields:

func (*RSAKey) PublicKey

func (_m *RSAKey) PublicKey() *rsa.PublicKey

PublicKey provides a mock function with given fields:

type RedisPool

type RedisPool struct {
	mock.Mock
}

RedisPool is an autogenerated mock type for the RedisPool type

func NewRedisPool added in v1.11.21

func NewRedisPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *RedisPool

NewRedisPool creates a new instance of RedisPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RedisPool) Cache

func (_m *RedisPool) Cache() interfaces.Cache

Cache provides a mock function with given fields:

func (*RedisPool) Disconnect

func (_m *RedisPool) Disconnect(ctx context.Context) error

Disconnect provides a mock function with given fields: ctx

func (*RedisPool) Health

func (_m *RedisPool) Health() map[string]error

Health provides a mock function with given fields:

func (*RedisPool) ReadPool

func (_m *RedisPool) ReadPool() *redis.Pool

ReadPool provides a mock function with given fields:

func (*RedisPool) WritePool

func (_m *RedisPool) WritePool() *redis.Pool

WritePool provides a mock function with given fields:

type SQLDatabase

type SQLDatabase struct {
	mock.Mock
}

SQLDatabase is an autogenerated mock type for the SQLDatabase type

func NewSQLDatabase added in v1.11.21

func NewSQLDatabase(t interface {
	mock.TestingT
	Cleanup(func())
}) *SQLDatabase

NewSQLDatabase creates a new instance of SQLDatabase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SQLDatabase) Disconnect

func (_m *SQLDatabase) Disconnect(ctx context.Context) error

Disconnect provides a mock function with given fields: ctx

func (*SQLDatabase) Health

func (_m *SQLDatabase) Health() map[string]error

Health provides a mock function with given fields:

func (*SQLDatabase) ReadDB

func (_m *SQLDatabase) ReadDB() *sql.DB

ReadDB provides a mock function with given fields:

func (*SQLDatabase) WriteDB

func (_m *SQLDatabase) WriteDB() *sql.DB

WriteDB provides a mock function with given fields:

type ServerHandler added in v1.7.0

type ServerHandler struct {
	mock.Mock
}

ServerHandler is an autogenerated mock type for the ServerHandler type

func NewServerHandler added in v1.11.21

func NewServerHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServerHandler

NewServerHandler creates a new instance of ServerHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ServerHandler) MountHandlers added in v1.7.0

func (_m *ServerHandler) MountHandlers(group interface{})

MountHandlers provides a mock function with given fields: group

type TokenValidator

type TokenValidator struct {
	mock.Mock
}

TokenValidator is an autogenerated mock type for the TokenValidator type

func NewTokenValidator added in v1.11.21

func NewTokenValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *TokenValidator

NewTokenValidator creates a new instance of TokenValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TokenValidator) ValidateToken

func (_m *TokenValidator) ValidateToken(ctx context.Context, token string) (*candishared.TokenClaim, error)

ValidateToken provides a mock function with given fields: ctx, token

type Tracer

type Tracer struct {
	mock.Mock
}

Tracer is an autogenerated mock type for the Tracer type

func (*Tracer) Context

func (_m *Tracer) Context() context.Context

Context provides a mock function with given fields:

func (*Tracer) Finish

func (_m *Tracer) Finish(additionalTags ...map[string]interface{})

Finish provides a mock function with given fields: additionalTags

func (*Tracer) InjectGRPCMetadata

func (_m *Tracer) InjectGRPCMetadata(md metadata.MD)

InjectGRPCMetadata provides a mock function with given fields: md

func (*Tracer) InjectHTTPHeader

func (_m *Tracer) InjectHTTPHeader(req *http.Request)

InjectHTTPHeader provides a mock function with given fields: req

func (*Tracer) InjectRequestHeader added in v1.9.3

func (_m *Tracer) InjectRequestHeader(header map[string]string)

InjectRequestHeader provides a mock function with given fields: header

func (*Tracer) Log

func (_m *Tracer) Log(key string, value interface{})

Log provides a mock function with given fields: key, value

func (*Tracer) SetError

func (_m *Tracer) SetError(err error)

SetError provides a mock function with given fields: err

func (*Tracer) SetTag

func (_m *Tracer) SetTag(key string, value interface{})

SetTag provides a mock function with given fields: key, value

func (*Tracer) Tags

func (_m *Tracer) Tags() map[string]interface{}

Tags provides a mock function with given fields:

type Validator

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator added in v1.11.21

func NewValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Validator

NewValidator creates a new instance of Validator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Validator) ValidateDocument

func (_m *Validator) ValidateDocument(reference string, document interface{}) error

ValidateDocument provides a mock function with given fields: reference, document

func (*Validator) ValidateStruct

func (_m *Validator) ValidateStruct(data interface{}) error

ValidateStruct provides a mock function with given fields: data

type WorkerHandler

type WorkerHandler struct {
	mock.Mock
}

WorkerHandler is an autogenerated mock type for the WorkerHandler type

func NewWorkerHandler added in v1.11.21

func NewWorkerHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *WorkerHandler

NewWorkerHandler creates a new instance of WorkerHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*WorkerHandler) MountHandlers

func (_m *WorkerHandler) MountHandlers(group *types.WorkerHandlerGroup)

MountHandlers provides a mock function with given fields: group

Jump to

Keyboard shortcuts

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