service

package
v0.0.0-...-c5558d5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyService

type MyService interface {
	RegisterEmployee()
	UpdateEmail()
	GetEmployeeDetails()
	DeleteEmployee()
}

MyService - ...

type Service

type Service struct {
	MyService
}

Service - ...

func NewService

func NewService() *Service

NewService - ...

func (*Service) DeleteEmployee

func (s *Service) DeleteEmployee(ctx context.Context, ID string) error

DeleteEmployee -...

func (*Service) GetEmployeeDetails

func (s *Service) GetEmployeeDetails(ctx context.Context, ID string) (*pb.Employee, error)

GetEmployeeDetails -...

func (*Service) RegisterEmployee

func (s *Service) RegisterEmployee(ctx context.Context, employee pb.Employee) (string, error)

RegisterEmployee -...

func (*Service) UpdateEmail

func (s *Service) UpdateEmail(ctx context.Context, ID, email string) error

UpdateEmail - ...

Jump to

Keyboard shortcuts

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