brigade

package
v1.9.12 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActivityInfo

func GetActivityInfo(ctx context.Context, logger *slog.Logger, opts *core.Options,
	brigadeID uuid.UUID,
) (models.BrigadeActivity, error)

func GetSlotsInfo

func GetSlotsInfo(ctx context.Context, logger *slog.Logger, opts *core.Options,
	brigadeID uuid.UUID,
) (*models.BrigadeSlots, error)

Types

type ActivityData

type ActivityData struct {
	LastSeen time.Time `json:"last_seen"`
	Updated  time.Time `json:"updated"`
}

type BrigadeActivity

type BrigadeActivity map[string]ActivityData

type BrigadeSlots

type BrigadeSlots struct {
	FreeSlots  int64 `json:"free_slots"`
	TotalSlots int64 `json:"total_slots"`
}

Jump to

Keyboard shortcuts

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