mock

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OfficeService

type OfficeService struct {
	FindManyFn      func(ctx context.Context, r *office.FindManyRequest) (*office.FindManyResponse, error)
	FindManyInvoked bool
	FindOneFn       func(ctx context.Context, r *office.FindOneRequest) (*office.FindOneResponse, error)
	FindOneInvoked  bool
	CreateFn        func(ctx context.Context, r *office.CreateRequest) error
	CreateInvoked   bool
	UpdateFn        func(ctx context.Context, r *office.UpdateRequest) error
	UpdateInvoked   bool
}

func (*OfficeService) Create

func (*OfficeService) FindMany

func (*OfficeService) FindOne

func (*OfficeService) Update

type TemplateService

type TemplateService struct {
	ParseFn                func(patterns string) error
	ExecuteTemplateFn      func(w http.ResponseWriter, page fmt.Stringer) error
	ExecuteTemplateInvoked bool
}

func (*TemplateService) ExecuteTemplate

func (s *TemplateService) ExecuteTemplate(w http.ResponseWriter, page fmt.Stringer) error

func (*TemplateService) Parse

func (s *TemplateService) Parse(patterns string) error

Jump to

Keyboard shortcuts

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