dummy

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 2

Documentation

Overview

Package dummy provides panicking dummy implementations of all service Interfaces.

In particular, this includes:

  • datastore.Interface
  • memcache.Interface
  • taskqueue.Interface
  • info.Interface
  • module.Interface

These dummy implementations panic with an appropriate error message when any of their methods are called. The message looks something like:

dummy: method Interface.Method is not implemented

The dummy implementations are useful when implementing the interfaces themselves, or when implementing filters, since it allows your stub implementation to embed the dummy version and then just implement the methods that you care about.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Datastore

func Datastore() datastore.RawInterface

Datastore returns a dummy datastore.RawInterface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func Info

func Info() info.RawInterface

Info returns a dummy info.RawInterface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func Mail

func Mail() mail.RawInterface

Mail returns a dummy mail.Interface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func Memcache

func Memcache() memcache.RawInterface

Memcache returns a dummy memcache.RawInterface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func Module

func Module() module.RawInterface

Module returns a dummy module.Interface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func TaskQueue

func TaskQueue() taskqueue.RawInterface

TaskQueue returns a dummy taskqueue.RawInterface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func User

func User() user.RawInterface

User returns a dummy user.Interface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

Types

This section is empty.

Jump to

Keyboard shortcuts

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