proto

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: 5 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

easel_service.proto

It has these top-level messages:

NewEaselRequest
NewEaselResponse
DeleteEaselRequest
DeleteEaselResponse
NewPaletteRequest
NewPaletteResponse
DeletePaletteRequest
DeletePaletteResponse
PingRequest
PongResponse
EaselInfo
PaletteInfo
ListupRequest
ListupResponse
VertexAttribute
UniformFloatValue
UniformIntValue
UniformVariable
ArrayBuffer
PaletteUpdate
UpdatePaletteRequest
UpdatePaletteResponse
RenderRequest
RenderResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEaselServiceServer

func RegisterEaselServiceServer(s *grpc.Server, srv EaselServiceServer)

Types

type ArrayBuffer

type ArrayBuffer struct {
	Name string    `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Data []float32 `protobuf:"fixed32,2,rep,packed,name=data" json:"data,omitempty"`
}

func (*ArrayBuffer) Descriptor

func (*ArrayBuffer) Descriptor() ([]byte, []int)

func (*ArrayBuffer) GetData

func (m *ArrayBuffer) GetData() []float32

func (*ArrayBuffer) GetName

func (m *ArrayBuffer) GetName() string

func (*ArrayBuffer) ProtoMessage

func (*ArrayBuffer) ProtoMessage()

func (*ArrayBuffer) Reset

func (m *ArrayBuffer) Reset()

func (*ArrayBuffer) String

func (m *ArrayBuffer) String() string

type DeleteEaselRequest

type DeleteEaselRequest struct {
	EaselId string `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
}

func (*DeleteEaselRequest) Descriptor

func (*DeleteEaselRequest) Descriptor() ([]byte, []int)

func (*DeleteEaselRequest) GetEaselId

func (m *DeleteEaselRequest) GetEaselId() string

func (*DeleteEaselRequest) ProtoMessage

func (*DeleteEaselRequest) ProtoMessage()

func (*DeleteEaselRequest) Reset

func (m *DeleteEaselRequest) Reset()

func (*DeleteEaselRequest) String

func (m *DeleteEaselRequest) String() string

type DeleteEaselResponse

type DeleteEaselResponse struct {
}

func (*DeleteEaselResponse) Descriptor

func (*DeleteEaselResponse) Descriptor() ([]byte, []int)

func (*DeleteEaselResponse) ProtoMessage

func (*DeleteEaselResponse) ProtoMessage()

func (*DeleteEaselResponse) Reset

func (m *DeleteEaselResponse) Reset()

func (*DeleteEaselResponse) String

func (m *DeleteEaselResponse) String() string

type DeletePaletteRequest

type DeletePaletteRequest struct {
	EaselId   string `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
	PaletteId string `protobuf:"bytes,2,opt,name=palette_id,json=paletteId" json:"palette_id,omitempty"`
}

func (*DeletePaletteRequest) Descriptor

func (*DeletePaletteRequest) Descriptor() ([]byte, []int)

func (*DeletePaletteRequest) GetEaselId

func (m *DeletePaletteRequest) GetEaselId() string

func (*DeletePaletteRequest) GetPaletteId

func (m *DeletePaletteRequest) GetPaletteId() string

func (*DeletePaletteRequest) ProtoMessage

func (*DeletePaletteRequest) ProtoMessage()

func (*DeletePaletteRequest) Reset

func (m *DeletePaletteRequest) Reset()

func (*DeletePaletteRequest) String

func (m *DeletePaletteRequest) String() string

type DeletePaletteResponse

type DeletePaletteResponse struct {
}

func (*DeletePaletteResponse) Descriptor

func (*DeletePaletteResponse) Descriptor() ([]byte, []int)

func (*DeletePaletteResponse) ProtoMessage

func (*DeletePaletteResponse) ProtoMessage()

func (*DeletePaletteResponse) Reset

func (m *DeletePaletteResponse) Reset()

func (*DeletePaletteResponse) String

func (m *DeletePaletteResponse) String() string

type EaselInfo

type EaselInfo struct {
	Id        string         `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Peer      string         `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"`
	UpdatedAt string         `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
	Palettes  []*PaletteInfo `protobuf:"bytes,4,rep,name=palettes" json:"palettes,omitempty"`
}

func (*EaselInfo) Descriptor

func (*EaselInfo) Descriptor() ([]byte, []int)

func (*EaselInfo) GetId

func (m *EaselInfo) GetId() string

func (*EaselInfo) GetPalettes

func (m *EaselInfo) GetPalettes() []*PaletteInfo

func (*EaselInfo) GetPeer

func (m *EaselInfo) GetPeer() string

func (*EaselInfo) GetUpdatedAt

func (m *EaselInfo) GetUpdatedAt() string

func (*EaselInfo) ProtoMessage

func (*EaselInfo) ProtoMessage()

func (*EaselInfo) Reset

func (m *EaselInfo) Reset()

func (*EaselInfo) String

func (m *EaselInfo) String() string

type EaselServiceClient

type EaselServiceClient interface {
	// New/Delete
	NewEasel(ctx context.Context, in *NewEaselRequest, opts ...grpc.CallOption) (*NewEaselResponse, error)
	DeleteEasel(ctx context.Context, in *DeleteEaselRequest, opts ...grpc.CallOption) (*DeleteEaselResponse, error)
	NewPalette(ctx context.Context, in *NewPaletteRequest, opts ...grpc.CallOption) (*NewPaletteResponse, error)
	DeletePalette(ctx context.Context, in *DeletePaletteRequest, opts ...grpc.CallOption) (*DeletePaletteResponse, error)
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PongResponse, error)
	Listup(ctx context.Context, in *ListupRequest, opts ...grpc.CallOption) (*ListupResponse, error)
	// Setup
	UpdatePalette(ctx context.Context, in *UpdatePaletteRequest, opts ...grpc.CallOption) (*UpdatePaletteResponse, error)
	// Render
	Render(ctx context.Context, in *RenderRequest, opts ...grpc.CallOption) (*RenderResponse, error)
}

func NewEaselServiceClient

func NewEaselServiceClient(cc *grpc.ClientConn) EaselServiceClient

type ListupRequest

type ListupRequest struct {
}

func (*ListupRequest) Descriptor

func (*ListupRequest) Descriptor() ([]byte, []int)

func (*ListupRequest) ProtoMessage

func (*ListupRequest) ProtoMessage()

func (*ListupRequest) Reset

func (m *ListupRequest) Reset()

func (*ListupRequest) String

func (m *ListupRequest) String() string

type ListupResponse

type ListupResponse struct {
	Easels []*EaselInfo `protobuf:"bytes,1,rep,name=easels" json:"easels,omitempty"`
}

func (*ListupResponse) Descriptor

func (*ListupResponse) Descriptor() ([]byte, []int)

func (*ListupResponse) GetEasels

func (m *ListupResponse) GetEasels() []*EaselInfo

func (*ListupResponse) ProtoMessage

func (*ListupResponse) ProtoMessage()

func (*ListupResponse) Reset

func (m *ListupResponse) Reset()

func (*ListupResponse) String

func (m *ListupResponse) String() string

type NewEaselRequest

type NewEaselRequest struct {
	EaselId string `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
}

func (*NewEaselRequest) Descriptor

func (*NewEaselRequest) Descriptor() ([]byte, []int)

func (*NewEaselRequest) GetEaselId

func (m *NewEaselRequest) GetEaselId() string

func (*NewEaselRequest) ProtoMessage

func (*NewEaselRequest) ProtoMessage()

func (*NewEaselRequest) Reset

func (m *NewEaselRequest) Reset()

func (*NewEaselRequest) String

func (m *NewEaselRequest) String() string

type NewEaselResponse

type NewEaselResponse struct {
	EaselId string `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
}

func (*NewEaselResponse) Descriptor

func (*NewEaselResponse) Descriptor() ([]byte, []int)

func (*NewEaselResponse) GetEaselId

func (m *NewEaselResponse) GetEaselId() string

func (*NewEaselResponse) ProtoMessage

func (*NewEaselResponse) ProtoMessage()

func (*NewEaselResponse) Reset

func (m *NewEaselResponse) Reset()

func (*NewEaselResponse) String

func (m *NewEaselResponse) String() string

type NewPaletteRequest

type NewPaletteRequest struct {
	EaselId string `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
}

func (*NewPaletteRequest) Descriptor

func (*NewPaletteRequest) Descriptor() ([]byte, []int)

func (*NewPaletteRequest) GetEaselId

func (m *NewPaletteRequest) GetEaselId() string

func (*NewPaletteRequest) ProtoMessage

func (*NewPaletteRequest) ProtoMessage()

func (*NewPaletteRequest) Reset

func (m *NewPaletteRequest) Reset()

func (*NewPaletteRequest) String

func (m *NewPaletteRequest) String() string

type NewPaletteResponse

type NewPaletteResponse struct {
	EaselId   string `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
	PaletteId string `protobuf:"bytes,2,opt,name=palette_id,json=paletteId" json:"palette_id,omitempty"`
}

func (*NewPaletteResponse) Descriptor

func (*NewPaletteResponse) Descriptor() ([]byte, []int)

func (*NewPaletteResponse) GetEaselId

func (m *NewPaletteResponse) GetEaselId() string

func (*NewPaletteResponse) GetPaletteId

func (m *NewPaletteResponse) GetPaletteId() string

func (*NewPaletteResponse) ProtoMessage

func (*NewPaletteResponse) ProtoMessage()

func (*NewPaletteResponse) Reset

func (m *NewPaletteResponse) Reset()

func (*NewPaletteResponse) String

func (m *NewPaletteResponse) String() string

type PaletteInfo

type PaletteInfo struct {
	Id        string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Peer      string `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"`
	UpdatedAt string `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
}

func (*PaletteInfo) Descriptor

func (*PaletteInfo) Descriptor() ([]byte, []int)

func (*PaletteInfo) GetId

func (m *PaletteInfo) GetId() string

func (*PaletteInfo) GetPeer

func (m *PaletteInfo) GetPeer() string

func (*PaletteInfo) GetUpdatedAt

func (m *PaletteInfo) GetUpdatedAt() string

func (*PaletteInfo) ProtoMessage

func (*PaletteInfo) ProtoMessage()

func (*PaletteInfo) Reset

func (m *PaletteInfo) Reset()

func (*PaletteInfo) String

func (m *PaletteInfo) String() string

type PaletteUpdate

type PaletteUpdate struct {
	// Shader
	VertexShader   string `protobuf:"bytes,1,opt,name=vertex_shader,json=vertexShader" json:"vertex_shader,omitempty"`
	FragmentShader string `protobuf:"bytes,2,opt,name=fragment_shader,json=fragmentShader" json:"fragment_shader,omitempty"`
	// VertexBuffer
	Buffers []*ArrayBuffer `protobuf:"bytes,3,rep,name=buffers" json:"buffers,omitempty"`
	// VertexElementBuffer
	Indecies []int32 `protobuf:"varint,4,rep,packed,name=indecies" json:"indecies,omitempty"`
	// VertexAttributes
	VertexArrtibutes []*VertexAttribute `protobuf:"bytes,5,rep,name=vertex_arrtibutes,json=vertexArrtibutes" json:"vertex_arrtibutes,omitempty"`
	// UniformVariables
	UniformVariables []*UniformVariable `protobuf:"bytes,6,rep,name=uniform_variables,json=uniformVariables" json:"uniform_variables,omitempty"`
}

func (*PaletteUpdate) Descriptor

func (*PaletteUpdate) Descriptor() ([]byte, []int)

func (*PaletteUpdate) GetBuffers

func (m *PaletteUpdate) GetBuffers() []*ArrayBuffer

func (*PaletteUpdate) GetFragmentShader

func (m *PaletteUpdate) GetFragmentShader() string

func (*PaletteUpdate) GetIndecies

func (m *PaletteUpdate) GetIndecies() []int32

func (*PaletteUpdate) GetUniformVariables

func (m *PaletteUpdate) GetUniformVariables() []*UniformVariable

func (*PaletteUpdate) GetVertexArrtibutes

func (m *PaletteUpdate) GetVertexArrtibutes() []*VertexAttribute

func (*PaletteUpdate) GetVertexShader

func (m *PaletteUpdate) GetVertexShader() string

func (*PaletteUpdate) ProtoMessage

func (*PaletteUpdate) ProtoMessage()

func (*PaletteUpdate) Reset

func (m *PaletteUpdate) Reset()

func (*PaletteUpdate) String

func (m *PaletteUpdate) String() string

type PingRequest

type PingRequest struct {
	EaselId   string `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
	PaletteId string `protobuf:"bytes,2,opt,name=palette_id,json=paletteId" json:"palette_id,omitempty"`
	Message   string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
}

func (*PingRequest) Descriptor

func (*PingRequest) Descriptor() ([]byte, []int)

func (*PingRequest) GetEaselId

func (m *PingRequest) GetEaselId() string

func (*PingRequest) GetMessage

func (m *PingRequest) GetMessage() string

func (*PingRequest) GetPaletteId

func (m *PingRequest) GetPaletteId() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) String

func (m *PingRequest) String() string

type PongResponse

type PongResponse struct {
	EaselId   string `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
	PaletteId string `protobuf:"bytes,2,opt,name=palette_id,json=paletteId" json:"palette_id,omitempty"`
	Message   string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
}

func (*PongResponse) Descriptor

func (*PongResponse) Descriptor() ([]byte, []int)

func (*PongResponse) GetEaselId

func (m *PongResponse) GetEaselId() string

func (*PongResponse) GetMessage

func (m *PongResponse) GetMessage() string

func (*PongResponse) GetPaletteId

func (m *PongResponse) GetPaletteId() string

func (*PongResponse) ProtoMessage

func (*PongResponse) ProtoMessage()

func (*PongResponse) Reset

func (m *PongResponse) Reset()

func (*PongResponse) String

func (m *PongResponse) String() string

type RenderRequest

type RenderRequest struct {
	EaselId    string         `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
	PaletteId  string         `protobuf:"bytes,2,opt,name=palette_id,json=paletteId" json:"palette_id,omitempty"`
	Updates    *PaletteUpdate `protobuf:"bytes,3,opt,name=updates" json:"updates,omitempty"`
	OutQuality float32        `protobuf:"fixed32,4,opt,name=out_quality,json=outQuality" json:"out_quality,omitempty"`
	OutFormat  string         `protobuf:"bytes,5,opt,name=out_format,json=outFormat" json:"out_format,omitempty"`
	OutWidth   int32          `protobuf:"varint,6,opt,name=out_width,json=outWidth" json:"out_width,omitempty"`
	OutHeight  int32          `protobuf:"varint,7,opt,name=out_height,json=outHeight" json:"out_height,omitempty"`
}

Render

func (*RenderRequest) Descriptor

func (*RenderRequest) Descriptor() ([]byte, []int)

func (*RenderRequest) GetEaselId

func (m *RenderRequest) GetEaselId() string

func (*RenderRequest) GetOutFormat

func (m *RenderRequest) GetOutFormat() string

func (*RenderRequest) GetOutHeight

func (m *RenderRequest) GetOutHeight() int32

func (*RenderRequest) GetOutQuality

func (m *RenderRequest) GetOutQuality() float32

func (*RenderRequest) GetOutWidth

func (m *RenderRequest) GetOutWidth() int32

func (*RenderRequest) GetPaletteId

func (m *RenderRequest) GetPaletteId() string

func (*RenderRequest) GetUpdates

func (m *RenderRequest) GetUpdates() *PaletteUpdate

func (*RenderRequest) ProtoMessage

func (*RenderRequest) ProtoMessage()

func (*RenderRequest) Reset

func (m *RenderRequest) Reset()

func (*RenderRequest) String

func (m *RenderRequest) String() string

type RenderResponse

type RenderResponse struct {
	Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
}

func (*RenderResponse) Descriptor

func (*RenderResponse) Descriptor() ([]byte, []int)

func (*RenderResponse) GetOutput

func (m *RenderResponse) GetOutput() []byte

func (*RenderResponse) ProtoMessage

func (*RenderResponse) ProtoMessage()

func (*RenderResponse) Reset

func (m *RenderResponse) Reset()

func (*RenderResponse) String

func (m *RenderResponse) String() string

type UniformFloatValue

type UniformFloatValue struct {
	ElementSize int32     `protobuf:"varint,1,opt,name=element_size,json=elementSize" json:"element_size,omitempty"`
	Data        []float32 `protobuf:"fixed32,2,rep,packed,name=data" json:"data,omitempty"`
}

func (*UniformFloatValue) Descriptor

func (*UniformFloatValue) Descriptor() ([]byte, []int)

func (*UniformFloatValue) GetData

func (m *UniformFloatValue) GetData() []float32

func (*UniformFloatValue) GetElementSize

func (m *UniformFloatValue) GetElementSize() int32

func (*UniformFloatValue) ProtoMessage

func (*UniformFloatValue) ProtoMessage()

func (*UniformFloatValue) Reset

func (m *UniformFloatValue) Reset()

func (*UniformFloatValue) String

func (m *UniformFloatValue) String() string

type UniformIntValue

type UniformIntValue struct {
	ElementSize int32   `protobuf:"varint,1,opt,name=element_size,json=elementSize" json:"element_size,omitempty"`
	Data        []int32 `protobuf:"varint,2,rep,packed,name=data" json:"data,omitempty"`
}

func (*UniformIntValue) Descriptor

func (*UniformIntValue) Descriptor() ([]byte, []int)

func (*UniformIntValue) GetData

func (m *UniformIntValue) GetData() []int32

func (*UniformIntValue) GetElementSize

func (m *UniformIntValue) GetElementSize() int32

func (*UniformIntValue) ProtoMessage

func (*UniformIntValue) ProtoMessage()

func (*UniformIntValue) Reset

func (m *UniformIntValue) Reset()

func (*UniformIntValue) String

func (m *UniformIntValue) String() string

type UniformVariable

type UniformVariable struct {
	Name       string             `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	FloatValue *UniformFloatValue `protobuf:"bytes,2,opt,name=float_value,json=floatValue" json:"float_value,omitempty"`
	IntValue   *UniformIntValue   `protobuf:"bytes,3,opt,name=int_value,json=intValue" json:"int_value,omitempty"`
	Texture    []byte             `protobuf:"bytes,4,opt,name=texture,proto3" json:"texture,omitempty"`
}

func (*UniformVariable) Descriptor

func (*UniformVariable) Descriptor() ([]byte, []int)

func (*UniformVariable) GetFloatValue

func (m *UniformVariable) GetFloatValue() *UniformFloatValue

func (*UniformVariable) GetIntValue

func (m *UniformVariable) GetIntValue() *UniformIntValue

func (*UniformVariable) GetName

func (m *UniformVariable) GetName() string

func (*UniformVariable) GetTexture

func (m *UniformVariable) GetTexture() []byte

func (*UniformVariable) ProtoMessage

func (*UniformVariable) ProtoMessage()

func (*UniformVariable) Reset

func (m *UniformVariable) Reset()

func (*UniformVariable) String

func (m *UniformVariable) String() string

type UpdatePaletteRequest

type UpdatePaletteRequest struct {
	EaselId   string         `protobuf:"bytes,1,opt,name=easel_id,json=easelId" json:"easel_id,omitempty"`
	PaletteId string         `protobuf:"bytes,2,opt,name=palette_id,json=paletteId" json:"palette_id,omitempty"`
	Updates   *PaletteUpdate `protobuf:"bytes,3,opt,name=updates" json:"updates,omitempty"`
}

func (*UpdatePaletteRequest) Descriptor

func (*UpdatePaletteRequest) Descriptor() ([]byte, []int)

func (*UpdatePaletteRequest) GetEaselId

func (m *UpdatePaletteRequest) GetEaselId() string

func (*UpdatePaletteRequest) GetPaletteId

func (m *UpdatePaletteRequest) GetPaletteId() string

func (*UpdatePaletteRequest) GetUpdates

func (m *UpdatePaletteRequest) GetUpdates() *PaletteUpdate

func (*UpdatePaletteRequest) ProtoMessage

func (*UpdatePaletteRequest) ProtoMessage()

func (*UpdatePaletteRequest) Reset

func (m *UpdatePaletteRequest) Reset()

func (*UpdatePaletteRequest) String

func (m *UpdatePaletteRequest) String() string

type UpdatePaletteResponse

type UpdatePaletteResponse struct {
}

func (*UpdatePaletteResponse) Descriptor

func (*UpdatePaletteResponse) Descriptor() ([]byte, []int)

func (*UpdatePaletteResponse) ProtoMessage

func (*UpdatePaletteResponse) ProtoMessage()

func (*UpdatePaletteResponse) Reset

func (m *UpdatePaletteResponse) Reset()

func (*UpdatePaletteResponse) String

func (m *UpdatePaletteResponse) String() string

type VertexAttribute

type VertexAttribute struct {
	ArgumentName string `protobuf:"bytes,1,opt,name=argument_name,json=argumentName" json:"argument_name,omitempty"`
	BufferName   string `protobuf:"bytes,2,opt,name=buffer_name,json=bufferName" json:"buffer_name,omitempty"`
	ElementSize  int32  `protobuf:"varint,3,opt,name=element_size,json=elementSize" json:"element_size,omitempty"`
	Offset       int32  `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"`
	Stride       int32  `protobuf:"varint,5,opt,name=stride" json:"stride,omitempty"`
}

func (*VertexAttribute) Descriptor

func (*VertexAttribute) Descriptor() ([]byte, []int)

func (*VertexAttribute) GetArgumentName

func (m *VertexAttribute) GetArgumentName() string

func (*VertexAttribute) GetBufferName

func (m *VertexAttribute) GetBufferName() string

func (*VertexAttribute) GetElementSize

func (m *VertexAttribute) GetElementSize() int32

func (*VertexAttribute) GetOffset

func (m *VertexAttribute) GetOffset() int32

func (*VertexAttribute) GetStride

func (m *VertexAttribute) GetStride() int32

func (*VertexAttribute) ProtoMessage

func (*VertexAttribute) ProtoMessage()

func (*VertexAttribute) Reset

func (m *VertexAttribute) Reset()

func (*VertexAttribute) String

func (m *VertexAttribute) String() string

Jump to

Keyboard shortcuts

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