server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, conf Config) error

Types

type Config

type Config struct {
	Development bool
	Logger      logr.Logger
	ZapLogger   *zap.Logger
	BindAddr    string
	Obs         []ConfigObs
}

type ConfigObs

type ConfigObs struct {
	Host      string
	Password  string
	DkTrackId int32
}

type Controller

func (*Controller) DisableAutomation

func (c *Controller) DisableAutomation(ctx context.Context, in *pb.SwitchAutomationRequest) (*pb.Track, error)

func (*Controller) EnableAutomation

func (c *Controller) EnableAutomation(ctx context.Context, in *pb.SwitchAutomationRequest) (*pb.Track, error)

func (*Controller) GetTrack

func (c *Controller) GetTrack(ctx context.Context, in *pb.GetTrackRequest) (*pb.Track, error)

func (*Controller) ListScene

func (*Controller) ListSharedmem

func (*Controller) ListTrack

func (c *Controller) ListTrack(ctx context.Context, in *emptypb.Empty) (*pb.ListTrackResponse, error)

func (*Controller) MoveSceneToNext

func (c *Controller) MoveSceneToNext(ctx context.Context, in *pb.MoveSceneToNextRequest) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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