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"` }
func NewClusterClientSession ¶
func NewClusterClientSession(m model.ClusterClientSession) ClusterClientSession