glossary

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTermRequest

type CreateTermRequest struct {
	Name         string                 `json:"name" validate:"required"`
	Definition   string                 `json:"definition" validate:"required"`
	Description  *string                `json:"description,omitempty"`
	ParentTermID *string                `json:"parent_term_id,omitempty"`
	Owners       []OwnerRequest         `json:"owners,omitempty"`
	Metadata     map[string]interface{} `json:"metadata,omitempty"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(
	glossaryService glossary.Service,
	userService user.Service,
	authService auth.Service,
	config *config.Config,
) *Handler

func (*Handler) Routes

func (h *Handler) Routes() []common.Route

type OwnerRequest

type OwnerRequest struct {
	ID   string `json:"id" validate:"required"`
	Type string `json:"type" validate:"required,oneof=user team"`
}

type UpdateTermRequest

type UpdateTermRequest struct {
	Name         *string                `json:"name,omitempty"`
	Definition   *string                `json:"definition,omitempty"`
	Description  *string                `json:"description,omitempty"`
	ParentTermID *string                `json:"parent_term_id,omitempty"`
	Owners       []OwnerRequest         `json:"owners,omitempty"`
	Metadata     map[string]interface{} `json:"metadata,omitempty"`
}

Jump to

Keyboard shortcuts

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