client

package
v0.0.0-...-62a6041 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientController

type ClientController struct {
}

func New

func New() *ClientController

func (ClientController) CreateClient

func (uc ClientController) CreateClient(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (ClientController) DeleteClient

func (uc ClientController) DeleteClient(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (ClientController) GetClient

func (ClientController) GetClients

func (ClientController) RegisterRoutes

func (uc ClientController) RegisterRoutes(r *httprouter.Router)

type CreateClientDTO

type CreateClientDTO struct {
	ClientId             string
	Username             string
	SubscribeAcl         string
	PublishAcl           string
	InputPassword        string
	InputPasswordConfirm string
}

func (*CreateClientDTO) Validate

func (a *CreateClientDTO) Validate() bool

type IndexClientDTO

type IndexClientDTO struct {
	ID        int64
	ClientId  string
	Username  string
	CreatedAt int64
}

type ShowClientDTO

type ShowClientDTO struct {
	ID        int64
	ClientId  string
	Username  string
	CreatedAt int64
}

Jump to

Keyboard shortcuts

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