ocs

package
v0.0.0-...-24517fb Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearStatusMessage

func ClearStatusMessage(auth Auth) error

func SaveAuth

func SaveAuth(auth Auth) error

func UpdateStatus

func UpdateStatus(auth Auth, status Status) error

func UpdateStatusMessage

func UpdateStatusMessage(auth Auth, message StatusMessage) error

Types

type Auth

type Auth struct {
	ServerBaseUrl string `json:"serverBaseUrl"`
	User          string `json:"user"`
	Password      string `json:"password"`
}

func LoadAuth

func LoadAuth() (Auth, error)

func (*Auth) Endpoint

func (a *Auth) Endpoint(url string) string

type Status

type Status struct {
	StatusType string `json:"statusType"`
}

type StatusMessage

type StatusMessage struct {
	ClearAt    int64  `json:"clearAt,omitempty"`
	Message    string `json:"message"`
	StatusIcon string `json:"statusIcon,omitempty"`
}

type UserStatus

type UserStatus struct {
	User    string
	Status  string
	Icon    string
	Message string
	ClearAt int64
}

func GetStatus

func GetStatus(auth Auth) (*UserStatus, error)

Jump to

Keyboard shortcuts

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