handler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package handler is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrGameNotSupported

type ErrGameNotSupported struct {
	// contains filtered or unexported fields
}

func (*ErrGameNotSupported) Error

func (e *ErrGameNotSupported) Error() string

type Game

type Game string
const (
	GameBf2 Game = "bf2"
)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(repository fileRepository) *Handler

func (*Handler) ReadGlobalConfig

func (h *Handler) ReadGlobalConfig(game Game) (*config.Config, error)

func (*Handler) ReadProfileConfig

func (h *Handler) ReadProfileConfig(game Game, profile string) (*config.Config, error)

type MockfileRepository

type MockfileRepository struct {
	// contains filtered or unexported fields
}

MockfileRepository is a mock of fileRepository interface.

func NewMockfileRepository

func NewMockfileRepository(ctrl *gomock.Controller) *MockfileRepository

NewMockfileRepository creates a new mock instance.

func (*MockfileRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockfileRepository) ReadFile

func (m *MockfileRepository) ReadFile(path string) ([]byte, error)

ReadFile mocks base method.

type MockfileRepositoryMockRecorder

type MockfileRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockfileRepositoryMockRecorder is the mock recorder for MockfileRepository.

func (*MockfileRepositoryMockRecorder) ReadFile

func (mr *MockfileRepositoryMockRecorder) ReadFile(path interface{}) *gomock.Call

ReadFile indicates an expected call of ReadFile.

Jump to

Keyboard shortcuts

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