implementation

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2017 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2017 Joan Llopis. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2017 Joan Llopis. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerTime

type ServerTime struct{}

func (*ServerTime) GetServerTime

type ServiceZbs

type ServiceZbs struct {
	Store store.Storer
}

ServiceZbs proporciona la estructura para implementar el servicio Xxxx. Recibe una referencia para interactuar con el Storer.

func (*ServiceZbs) AddJob

func (sz *ServiceZbs) AddJob(ctx context.Context, job *services.JobMsg) (*services.IdMessage, error)

AddJob crea un nuevo registro

func (*ServiceZbs) DeleteJob

func (sz *ServiceZbs) DeleteJob(ctx context.Context, id *services.IdMessage) (*services.JobMsg, error)

DeleteJob elimina el registro y devuelve el registro eliminado

func (*ServiceZbs) FindJob

func (sz *ServiceZbs) FindJob(ctx context.Context, id *services.IdMessage) (*services.JobMsg, error)

FindJob devuelve el Job cuyo id corresponde con el solicitado

func (*ServiceZbs) ListJobs

func (sz *ServiceZbs) ListJobs(ctx context.Context, filter *services.JobFilterMsg) (*services.JobArrayMsg, error)

ListJobs devuelve los Jobs resultantes de aplicar el filtro suministrado

func (*ServiceZbs) UpdateJob

func (sz *ServiceZbs) UpdateJob(ctx context.Context, filter *services.JobMsg) (*services.JobMsg, error)

UpdateJob actualiza el Job y lo devuelve actualizado

Jump to

Keyboard shortcuts

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