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 ¶
- type ServerTime
- type ServiceZbs
- func (sz *ServiceZbs) AddJob(ctx context.Context, job *services.JobMsg) (*services.IdMessage, error)
- func (sz *ServiceZbs) DeleteJob(ctx context.Context, id *services.IdMessage) (*services.JobMsg, error)
- func (sz *ServiceZbs) FindJob(ctx context.Context, id *services.IdMessage) (*services.JobMsg, error)
- func (sz *ServiceZbs) ListJobs(ctx context.Context, filter *services.JobFilterMsg) (*services.JobArrayMsg, error)
- func (sz *ServiceZbs) UpdateJob(ctx context.Context, filter *services.JobMsg) (*services.JobMsg, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerTime ¶
type ServerTime struct{}
func (*ServerTime) GetServerTime ¶
func (st *ServerTime) GetServerTime(context.Context, *google_protobuf1.Empty) (*services.ServerTimeMessage, error)
type ServiceZbs ¶
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