mocks

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	mock.Mock
}

Server is an autogenerated mock type for the Server type

func NewServer

func NewServer(t mockConstructorTestingTNewServer) *Server

NewServer creates a new instance of Server. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Server) Consume

func (_m *Server) Consume(messenger *messengers.Messenger)

Consume provides a mock function with given fields: messenger

func (*Server) Handle

func (_m *Server) Handle(_a0 context.Context, server *runtime.ServeMux, client *grpc.ClientConn) error

Handle provides a mock function with given fields: _a0, server, client

func (*Server) Migrate

func (_m *Server) Migrate(db *gorm.DB)

Migrate provides a mock function with given fields: db

func (*Server) Register

func (_m *Server) Register(server *grpc.Server)

Register provides a mock function with given fields: server

func (*Server) Sync

func (_m *Server) Sync(client *elastic.Client)

Sync provides a mock function with given fields: client

Jump to

Keyboard shortcuts

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