overlay

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnvLocalContentPath = "AK_TRACKSTAR_OVERLAY_CONTENT"
)

Variables

View Source
var (
	BusTopic_name = map[int32]string{
		0: "TRACKSTAR_OVERLAY_EVENT",
		1: "TRACKSTAR_OVERLAY_REQUEST",
	}
	BusTopic_value = map[string]int32{
		"TRACKSTAR_OVERLAY_EVENT":   0,
		"TRACKSTAR_OVERLAY_REQUEST": 1,
	}
)

Enum value maps for BusTopic.

View Source
var (
	MessageType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "CONFIG_UPDATED",
		2: "SET_STYLE",
		3: "GET_CONFIG_REQUEST",
		4: "GET_CONFIG_RESPONSE",
		5: "SET_TRACK_COUNT",
		6: "TRACK_COUNT_UPDATE",
		7: "CONFIG_SET_REQ",
		8: "CONFIG_SET_RESP",
	}
	MessageType_value = map[string]int32{
		"UNSPECIFIED":         0,
		"CONFIG_UPDATED":      1,
		"SET_STYLE":           2,
		"GET_CONFIG_REQUEST":  3,
		"GET_CONFIG_RESPONSE": 4,
		"SET_TRACK_COUNT":     5,
		"TRACK_COUNT_UPDATE":  6,
		"CONFIG_SET_REQ":      7,
		"CONFIG_SET_RESP":     8,
	}
)

Enum value maps for MessageType.

View Source
var File_overlay_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BusTopic

type BusTopic int32
const (
	BusTopic_TRACKSTAR_OVERLAY_EVENT   BusTopic = 0
	BusTopic_TRACKSTAR_OVERLAY_REQUEST BusTopic = 1
)

func (BusTopic) Descriptor

func (BusTopic) Descriptor() protoreflect.EnumDescriptor

func (BusTopic) Enum

func (x BusTopic) Enum() *BusTopic

func (BusTopic) EnumDescriptor deprecated

func (BusTopic) EnumDescriptor() ([]byte, []int)

Deprecated: Use BusTopic.Descriptor instead.

func (BusTopic) Number

func (x BusTopic) Number() protoreflect.EnumNumber

func (BusTopic) String

func (x BusTopic) String() string

func (BusTopic) Type

type Config

type Config struct {
	Styles     []*StyleUpdate `protobuf:"bytes,1,rep,name=styles,proto3" json:"styles,omitempty"`
	TrackCount uint32         `protobuf:"varint,2,opt,name=track_count,json=trackCount,proto3" json:"track_count,omitempty"`
	CustomCss  string         `protobuf:"bytes,3,opt,name=custom_css,json=customCss,proto3" json:"custom_css,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetCustomCss

func (x *Config) GetCustomCss() string

func (*Config) GetStyles

func (x *Config) GetStyles() []*StyleUpdate

func (*Config) GetTrackCount

func (x *Config) GetTrackCount() uint32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type ConfigSetRequest

type ConfigSetRequest struct {
	Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigSetRequest) Descriptor deprecated

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

Deprecated: Use ConfigSetRequest.ProtoReflect.Descriptor instead.

func (*ConfigSetRequest) GetConfig

func (x *ConfigSetRequest) GetConfig() *Config

func (*ConfigSetRequest) ProtoMessage

func (*ConfigSetRequest) ProtoMessage()

func (*ConfigSetRequest) ProtoReflect

func (x *ConfigSetRequest) ProtoReflect() protoreflect.Message

func (*ConfigSetRequest) Reset

func (x *ConfigSetRequest) Reset()

func (*ConfigSetRequest) String

func (x *ConfigSetRequest) String() string

type ConfigSetResponse

type ConfigSetResponse struct {
	Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigSetResponse) Descriptor deprecated

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

Deprecated: Use ConfigSetResponse.ProtoReflect.Descriptor instead.

func (*ConfigSetResponse) GetConfig

func (x *ConfigSetResponse) GetConfig() *Config

func (*ConfigSetResponse) ProtoMessage

func (*ConfigSetResponse) ProtoMessage()

func (*ConfigSetResponse) ProtoReflect

func (x *ConfigSetResponse) ProtoReflect() protoreflect.Message

func (*ConfigSetResponse) Reset

func (x *ConfigSetResponse) Reset()

func (*ConfigSetResponse) String

func (x *ConfigSetResponse) String() string

type GetConfigRequest

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

func (*GetConfigRequest) Descriptor deprecated

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

Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.

func (*GetConfigRequest) ProtoMessage

func (*GetConfigRequest) ProtoMessage()

func (*GetConfigRequest) ProtoReflect

func (x *GetConfigRequest) ProtoReflect() protoreflect.Message

func (*GetConfigRequest) Reset

func (x *GetConfigRequest) Reset()

func (*GetConfigRequest) String

func (x *GetConfigRequest) String() string

type GetConfigResponse

type GetConfigResponse struct {
	Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*GetConfigResponse) Descriptor deprecated

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

Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead.

func (*GetConfigResponse) GetConfig

func (x *GetConfigResponse) GetConfig() *Config

func (*GetConfigResponse) ProtoMessage

func (*GetConfigResponse) ProtoMessage()

func (*GetConfigResponse) ProtoReflect

func (x *GetConfigResponse) ProtoReflect() protoreflect.Message

func (*GetConfigResponse) Reset

func (x *GetConfigResponse) Reset()

func (*GetConfigResponse) String

func (x *GetConfigResponse) String() string

type MessageType

type MessageType int32
const (
	MessageType_UNSPECIFIED         MessageType = 0
	MessageType_CONFIG_UPDATED      MessageType = 1
	MessageType_SET_STYLE           MessageType = 2
	MessageType_GET_CONFIG_REQUEST  MessageType = 3
	MessageType_GET_CONFIG_RESPONSE MessageType = 4
	MessageType_SET_TRACK_COUNT     MessageType = 5
	MessageType_TRACK_COUNT_UPDATE  MessageType = 6
	MessageType_CONFIG_SET_REQ      MessageType = 7
	MessageType_CONFIG_SET_RESP     MessageType = 8
)

func (MessageType) Descriptor

func (MessageType) Enum

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor deprecated

func (MessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MessageType.Descriptor instead.

func (MessageType) Number

func (x MessageType) Number() protoreflect.EnumNumber

func (MessageType) String

func (x MessageType) String() string

func (MessageType) Type

type Overlay

type Overlay struct {
	http.Handler
	modutil.ModuleBase
	// contains filtered or unexported fields
}

func (*Overlay) Start

func (o *Overlay) Start(ctx context.Context, deps *modutil.ModuleDeps) error

type SetTrackCount

type SetTrackCount struct {
	Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*SetTrackCount) Descriptor deprecated

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

Deprecated: Use SetTrackCount.ProtoReflect.Descriptor instead.

func (*SetTrackCount) GetCount

func (x *SetTrackCount) GetCount() uint32

func (*SetTrackCount) ProtoMessage

func (*SetTrackCount) ProtoMessage()

func (*SetTrackCount) ProtoReflect

func (x *SetTrackCount) ProtoReflect() protoreflect.Message

func (*SetTrackCount) Reset

func (x *SetTrackCount) Reset()

func (*SetTrackCount) String

func (x *SetTrackCount) String() string

type StyleUpdate

type StyleUpdate struct {
	Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
	Property string `protobuf:"bytes,2,opt,name=property,proto3" json:"property,omitempty"`
	Value    string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*StyleUpdate) Descriptor deprecated

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

Deprecated: Use StyleUpdate.ProtoReflect.Descriptor instead.

func (*StyleUpdate) GetProperty

func (x *StyleUpdate) GetProperty() string

func (*StyleUpdate) GetSelector

func (x *StyleUpdate) GetSelector() string

func (*StyleUpdate) GetValue

func (x *StyleUpdate) GetValue() string

func (*StyleUpdate) ProtoMessage

func (*StyleUpdate) ProtoMessage()

func (*StyleUpdate) ProtoReflect

func (x *StyleUpdate) ProtoReflect() protoreflect.Message

func (*StyleUpdate) Reset

func (x *StyleUpdate) Reset()

func (*StyleUpdate) String

func (x *StyleUpdate) String() string

type TrackCountUpdate

type TrackCountUpdate struct {
	Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*TrackCountUpdate) Descriptor deprecated

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

Deprecated: Use TrackCountUpdate.ProtoReflect.Descriptor instead.

func (*TrackCountUpdate) GetCount

func (x *TrackCountUpdate) GetCount() uint32

func (*TrackCountUpdate) ProtoMessage

func (*TrackCountUpdate) ProtoMessage()

func (*TrackCountUpdate) ProtoReflect

func (x *TrackCountUpdate) ProtoReflect() protoreflect.Message

func (*TrackCountUpdate) Reset

func (x *TrackCountUpdate) Reset()

func (*TrackCountUpdate) String

func (x *TrackCountUpdate) String() string

Jump to

Keyboard shortcuts

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