service

package
v0.0.2-0...-0431bfe Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CarServiceImpl

type CarServiceImpl struct {
	Health *health.Server
	// contains filtered or unexported fields
}

CarServiceImpl is a implementation of RepositoryService Grpc Service.

func NewCarServiceImpl

func NewCarServiceImpl(serviceName string, healthServer *health.Server) (*CarServiceImpl, error)

NewCarServiceImpl returns the pointer to the implementation.

func (*CarServiceImpl) Brake

func (serviceImpl *CarServiceImpl) Brake(c context.Context, b *grpc.Brake) (*grpc.Empty, error)

Brake

func (*CarServiceImpl) Emergency

func (serviceImpl *CarServiceImpl) Emergency(context.Context, *grpc.Emergency) (*grpc.Empty, error)

Emergency

func (*CarServiceImpl) End

func (serviceImpl *CarServiceImpl) End() error

func (*CarServiceImpl) Log

func (serviceImpl *CarServiceImpl) Log(empty *grpc.Empty, stream grpc.LogService_LogServer) error

Add function implementation of gRPC Service.

func (*CarServiceImpl) Move

func (serviceImpl *CarServiceImpl) Move(c context.Context, m *grpc.Move) (*grpc.Empty, error)

Move

func (*CarServiceImpl) Power

func (serviceImpl *CarServiceImpl) Power(c context.Context, p *grpc.Power) (*grpc.Empty, error)

Power

Jump to

Keyboard shortcuts

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