server

package
v0.0.0-...-768eb72 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: AGPL-3.0 Imports: 11 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 {
	DB store.StreamStore
}

Server fulfills the protocol buffer's SeerServer interface.

func New

func New(path string) (srv *Server, err error)

New creates a database connection and returns a Server.

func (*Server) CreateStream

func (srv *Server) CreateStream(c context.Context, in *seer.CreateStreamRequest) (s *seer.Stream, err error)

CreateStream creates the provided stream.

func (*Server) DeleteStream

func (srv *Server) DeleteStream(c context.Context, in *seer.DeleteStreamRequest) (em *empty.Empty, err error)

DeleteStream removes the requested stream.

func (*Server) GetForecast

func (srv *Server) GetForecast(c context.Context, in *seer.GetForecastRequest) (f *seer.Forecast, err error)

GetForecast generates a forecast from a stream from its current time.

func (*Server) GetStream

func (srv *Server) GetStream(c context.Context, in *seer.GetStreamRequest) (s *seer.Stream, err error)

GetStream retrieves and returns the requested stream.

func (*Server) ListStreams

func (srv *Server) ListStreams(c context.Context, in *seer.ListStreamsRequest) (s *seer.ListStreamsResponse, err error)

ListStreams returns a paged set of streams.

func (*Server) UpdateStream

func (srv *Server) UpdateStream(c context.Context, in *seer.UpdateStreamRequest) (s *seer.Stream, err error)

UpdateStream applies an adaptive filter update using the provided events.

Jump to

Keyboard shortcuts

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