pkg

package
v0.0.0-...-c86e3d9 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewElasticClientMock

func NewElasticClientMock(url string) (*elastic.Client, error)

NewSQLMock Creates fake elastic client

func NewHandlerMock

func NewHandlerMock() http.HandlerFunc

NewSQLMock Creates fake http handler

func NewSQLMock

func NewSQLMock() (*sql.DB, sqlmock.Sqlmock)

NewSQLMock Creates fake sql connection

func TypeOf

func TypeOf(i interface{}) string

TypeOf Get struct name ex : CreateArticleCommand{} => "CreateArticleCommand"

Types

type HTTPError

type HTTPError struct {
	Status  int
	Message string
}

type HTTPStatus

type HTTPStatus struct {
	Status string
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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