service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

Option is a configuration func for Server.

func APIOption

func APIOption(api *api.API) Option

APIOption sets underlying mesg API.

type Server

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

Server binds all api functions.

func NewServer

func NewServer(options ...Option) (*Server, error)

NewServer creates a new Server with given options.

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