response

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListNamespaces

type ListNamespaces []Namespace

ListNamespaces is the response struct for the ListNamespaces endpoint (slice of Namespace).

func NewListNamespacesResponse

func NewListNamespacesResponse(
	namespaces []models.Namespace,
) *ListNamespaces

NewListNamespacesResponse creates new instance of ListNamespaces.

type Namespace

type Namespace struct {
	ID          uint   `json:"id"`
	Code        string `json:"code"`
	Description string `json:"description"`
}

Namespace is the response struct for the GetCurrentNamespace endpoint.

func NewGetCurrentNamespaceResponse

func NewGetCurrentNamespaceResponse(
	namespace *models.Namespace,
) *Namespace

NewGetCurrentNamespaceResponse creates new instance of Namespace.

Jump to

Keyboard shortcuts

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