cluster_client_session

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteClusterClientSession

func DeleteClusterClientSession(ctx echo.Context) error

@Description Delete a Cluster Client Session @Accept json @Produce json @Tags /api/v1/session @Router /api/v1/session/{uuid} [delete] @Param uuid path string true "ClusterClientSession UUID" @Success 200

func FindClusterClientSession

func FindClusterClientSession(ctx echo.Context) error

@Description Find Cluster Client Sessions @Accept x-www-form-urlencoded @Produce json @Tags /api/v1/session @Router /api/v1/session [get] @Param q query string false "query github.com/claion-org/claiflow/pkg/database/vanilla/stmt/README.md" @Param o query string false "order github.com/claion-org/claiflow/pkg/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/claion-org/claiflow/pkg/database/vanilla/stmt/README.md" @Success 200 {array} ClusterClientSession

func GetClusterClientSession

func GetClusterClientSession(ctx echo.Context) error

@Description Get a Cluster Client Session @Accept json @Produce json @Tags /api/v1/session @Router /api/v1/session/{uuid} [get] @Param uuid path string true "ClusterClientSession UUID" @Success 200 {object} ClusterClientSession

func GetClusterClientSessionAlive

func GetClusterClientSessionAlive(ctx echo.Context) error

@Deprecated @Description Check Alive a Cluster Client Session @Accept json @Produce json @Tags /api/v1/session @Router /api/v1/session/alive [get] @Param cluster_uuid path string true "Cluster UUID" @Success 200 {object} cluster.ClusterClientSessionStatus

Types

type ClusterClientSession

type ClusterClientSession struct {
	ID             int64     `json:"id"`
	Uuid           string    `json:"uuid"`
	ClusterUuid    string    `json:"cluster_uuid"`
	Token          string    `json:"token"`
	IssuedAtTime   time.Time `json:"issued_at_time"`
	ExpirationTime time.Time `json:"expiration_time"`
	Created        time.Time `json:"created"`
	Updated        time.Time `json:"updated"`
	Deleted        time.Time `json:"deleted"`
}

Jump to

Keyboard shortcuts

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