service

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server binds all api functions.

func NewServer

func NewServer(api *api.API) *Server

NewServer creates a new Server.

func (*Server) EmitEvent

func (s *Server) EmitEvent(context context.Context, request *serviceapi.EmitEventRequest) (*serviceapi.EmitEventReply, error)

EmitEvent permits to send and event to anyone who subscribed to it.

func (*Server) ListenTask

ListenTask creates a stream that will send data for every task to execute.

func (*Server) SubmitResult

func (s *Server) SubmitResult(context context.Context, request *serviceapi.SubmitResultRequest) (*serviceapi.SubmitResultReply, error)

SubmitResult submits results of an execution.

Jump to

Keyboard shortcuts

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