group

package
v0.0.0-...-3cdc2b7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

func NewHandlers

func NewHandlers(l *log.Logger) *Handlers

func (*Handlers) SetupRoutes

func (h *Handlers) SetupRoutes(r *chi.Mux)

type InCreateGroup

type InCreateGroup struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
}

type InCreateMsg

type InCreateMsg struct {
	Message *string `json:"message"`
}

type InUpdateGroup

type InUpdateGroup struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
}

type OutCreateGroup

type OutCreateGroup struct {
	model.Base
	Name        string
	Description string `json:"description"`
	ImageURL    string `json:"image_url"`
}

type OutGetGroup

type OutGetGroup struct {
	model.Base
	Name         string              `json:"name"`
	Description  string              `json:"description"`
	ImageURL     string              `json:"image_url"`
	Joined       bool                `json:"joined"`
	Notification bool                `json:"notification"`
	OwnerID      uint                `json:"owner_id"`
	Owner        *model.User         `json:"owner"`
	Memberships  []*model.Membership `json:"memberships"`
}

type OutListGroups

type OutListGroups struct {
	model.Base
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ImageURL    string      `json:"image_url"`
	OwnerID     uint        `json:"owner_id"`
	Owner       *model.User `json:"owner"`
}

type OutUpdateGroup

type OutUpdateGroup struct {
	model.Base
	Name        string              `json:"name"`
	Description string              `json:"description"`
	ImageURL    string              `json:"image_url"`
	OwnerID     uint                `json:"owner_id"`
	Owner       *model.User         `json:"owner"`
	Memberships []*model.Membership `json:"memberships"`
}

Jump to

Keyboard shortcuts

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