api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: Apache-2.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

func NewServer

func NewServer(manager *manager.Manager, sim *simulator.Simulator) (*Server, error)

func (*Server) Delete

func (s *Server) Delete(ctx context.Context, key *api.Key) (*empty.Empty, error)

func (*Server) DeleteAll

func (s *Server) DeleteAll(ctx context.Context, key *api.Key) (*empty.Empty, error)

func (*Server) FinalizeGame

func (s *Server) FinalizeGame(result *api.Result)

func (*Server) Get

func (s *Server) Get(ctx context.Context, key *api.Key) (*api.Message, error)

func (*Server) GetActors

func (s *Server) GetActors(empty *empty.Empty, stream api.DirectorAPI_GetActorsServer) error

func (*Server) GetAll

func (s *Server) GetAll(key *api.Key, stream api.MessageAPI_GetAllServer) error

func (*Server) ImReady

func (s *Server) ImReady(ctx context.Context, emp *empty.Empty) (*empty.Empty, error)

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, emp *empty.Empty) (*empty.Empty, error)

func (*Server) Put

func (s *Server) Put(ctx context.Context, message *api.Message) (*empty.Empty, error)

func (*Server) PutResult

func (s *Server) PutResult(ctx context.Context, result *api.Result) (*empty.Empty, error)

func (*Server) SetUserStatus

func (s *Server) SetUserStatus(ctx context.Context, report *api.Report) (*empty.Empty, error)

func (*Server) Watch

func (s *Server) Watch(key *api.Key, stream api.MessageAPI_WatchServer) error

Jump to

Keyboard shortcuts

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