impl

package
v0.0.0-...-3791a9b Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExpiredDuration ...
	ExpiredDuration = time.Minute * 30
)

Variables

View Source
var (
	// ErrEaselNotFound ...
	ErrEaselNotFound = errors.New("Easel not found")
	// ErrPaletteNotFound ...
	ErrPaletteNotFound = errors.New("Palette not found")
	// ErrVertexBufferNotFound ...
	ErrVertexBufferNotFound = errors.New("VertexBuffer not found")
)
View Source
var (
	// ErreaselMakerImplAlreadyClosed ...
	ErreaselMakerImplAlreadyClosed = errors.New("Easel maker is already stopped.")
)

Functions

This section is empty.

Types

type EaselEntry

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

EaselEntry ...

type EaselMaker

type EaselMaker interface {
	RequestNewEasel() <-chan *easel.Easel
	RequestDelEasel(e *easel.Easel)
	Start()
	Stop()
}

EaselMaker ...

func NewEaselMaker

func NewEaselMaker() EaselMaker

NewEaselMaker ...

func NewEaselMakerMock

func NewEaselMakerMock(neasels int) EaselMaker

NewEaselMakerMock ...

type PaletteEntry

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

PaletteEntry ...

type Server

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

Server ...

func NewServer

func NewServer(em EaselMaker) *Server

NewServer ...

func (*Server) DeleteEasel

DeleteEasel ...

func (*Server) DeletePalette

func (serv *Server) DeletePalette(ctx context.Context, req *proto.DeletePaletteRequest) (*proto.DeletePaletteResponse, error)

DeletePalette ...

func (*Server) Listup

func (serv *Server) Listup(ctx context.Context, req *proto.ListupRequest) (*proto.ListupResponse, error)

Listup ...

func (*Server) NewEasel

func (serv *Server) NewEasel(c context.Context, req *proto.NewEaselRequest) (*proto.NewEaselResponse, error)

NewEasel ...

func (*Server) NewPalette

func (serv *Server) NewPalette(ctx context.Context, req *proto.NewPaletteRequest) (*proto.NewPaletteResponse, error)

NewPalette ...

func (*Server) Ping

func (serv *Server) Ping(ctx context.Context, req *proto.PingRequest) (*proto.PongResponse, error)

Ping ...

func (*Server) Render

func (serv *Server) Render(ctx context.Context, req *proto.RenderRequest) (*proto.RenderResponse, error)

Render ...

func (*Server) Start

func (serv *Server) Start(listen string, opts ...grpc.ServerOption)

Start ...

func (*Server) Stop

func (serv *Server) Stop()

Stop ...

func (*Server) UpdatePalette

func (serv *Server) UpdatePalette(ctx context.Context, req *proto.UpdatePaletteRequest) (*proto.UpdatePaletteResponse, error)

UpdatePalette ...

Jump to

Keyboard shortcuts

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