kernel

package
v0.0.0-...-3f93e99 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HLayout = "H"
	VLayout = "V"
)

Layout

View Source
const (
	LKind = "L"
	CKind = "C"
)

Lane Kind

Variables

View Source
var EmptyID = ID("")

EmptyID value

Functions

This section is empty.

Types

type Command

type Command struct {
	ID      ID                `json:"id"`
	BoardID ID                `json:"board_id"`
	Type    CommandType       `json:"type"`
	Payload map[string]string `json:"payload"`
}

Command type

type CommandType

type CommandType int

CommandType type

const (
	// UpdateCardCommand type 0
	UpdateCardCommand CommandType = CommandType(iota)
	// RemoveCardCommand type 1
	RemoveCardCommand
	// UpdateLaneCommand type 2
	UpdateLaneCommand
	// RemoveLaneCommand type 3
	RemoveLaneCommand
	// ExcludeChildCommand type 4
	ExcludeChildCommand
	// AppendChildCommand type 5
	AppendChildCommand
	// InsertBeforeCommand type 6
	InsertBeforeCommand
	// InsertAfterCommand type 7
	InsertAfterCommand
	// LayoutBoardCommand type 8
	LayoutBoardCommand
	// 9
	LayoutLaneCommand
	// 10
	DescribeBoardCommand
	// 11
	DescribeLaneCommand
	// 12
	DescribeCardCommand
	// 13
	UpdateBoardCommand
	// 14
	StateBoardCommand
)

type ID

type ID string

ID type

func (ID) IsValid

func (id ID) IsValid() bool

IsValid id

func (ID) String

func (id ID) String() string

String converts ID to string

func (ID) WithID

func (setID ID) WithID(id ID) MemberID

WithID builds MemberID

func (ID) WithSet

func (id ID) WithSet(setID ID) MemberID

WithSet builds MemberID

type MemberID

type MemberID struct {
	SetID ID
	ID    ID
}

MemberID represents complex ID

type Notification

type Notification struct {
	ID      ID               `json:"id"`
	BoardID ID               `json:"board_id"`
	Type    NotificationType `json:"type"`
}

Notification type

func (Notification) IsEqual

func (n Notification) IsEqual(notification Notification) bool

IsEqual notification

type NotificationType

type NotificationType int

NotificationType type

const (
	// RefreshCardNotification type
	RefreshCardNotification NotificationType = NotificationType(iota)
	// RefreshLaneNotification type
	RefreshLaneNotification
	// RefreshBoardNotification type
	RefreshBoardNotification
	// RemoveCardNotification type
	RemoveCardNotification
	// RemoveLaneNotification type
	RemoveLaneNotification
	// RemoveBoardNotification type
	RemoveBoardNotification
	// CreateCardNotification type
	CreateCardNotification
	// CreateLaneNotification type
	CreateLaneNotification
	// CreateBoardNotification type
	CreateBoardNotification
)

Jump to

Keyboard shortcuts

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