instance

package
v0.0.1-alpha-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance interface {
	Destroy() error
	DB() orm.Ormer
	Validator() *validator.Validate
	NatsClient() *nats.Conn
	NatsJetstreamClient() nats.JetStreamContext
}

func Init

func Init(config config.Configuration) Instance

Init initializes the instance

type InstanceMock

type InstanceMock struct {
	mock.Mock
}

func NewInstanceMock

func NewInstanceMock() InstanceMock

func (*InstanceMock) DB

func (instance *InstanceMock) DB() orm.Ormer

func (*InstanceMock) Destroy

func (instance *InstanceMock) Destroy() error

func (*InstanceMock) Validator

func (instance *InstanceMock) Validator() *validator.Validate

Jump to

Keyboard shortcuts

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