admin

package
v0.0.0-...-4a5e4cf Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(url string, db store.Database) http.Handler

Types

type Handler

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

func (*Handler) AdminV1APIAuthLoginPost

func (h *Handler) AdminV1APIAuthLoginPost(ctx context.Context, req *generated.ParamsAuthLogin) (generated.AdminV1APIAuthLoginPostRes, error)

func (*Handler) AdminV1APIAuthLogoutPost

func (h *Handler) AdminV1APIAuthLogoutPost(_ context.Context) (generated.AdminV1APIAuthLogoutPostRes, error)

func (*Handler) AdminV1APIBlogGet

func (h *Handler) AdminV1APIBlogGet(_ context.Context) (generated.AdminV1APIBlogGetRes, error)

func (*Handler) AdminV1APIBlogPatch

func (h *Handler) AdminV1APIBlogPatch(ctx context.Context, blogReq *generated.Blog) (generated.AdminV1APIBlogPatchRes, error)

func (*Handler) AdminV1APIPostPatch

func (h *Handler) AdminV1APIPostPatch(ctx context.Context, reqPost *generated.Post) (generated.AdminV1APIPostPatchRes, error)

func (*Handler) AdminV1APIPostPost

func (h *Handler) AdminV1APIPostPost(ctx context.Context, reqPost *generated.Post) (generated.AdminV1APIPostPostRes, error)

func (*Handler) AdminV1APIUserGet

func (h *Handler) AdminV1APIUserGet(ctx context.Context) (generated.AdminV1APIUserGetRes, error)

func (*Handler) AdminV1APIUserPatch

func (h *Handler) AdminV1APIUserPatch(ctx context.Context, jsonUser *generated.User) (generated.AdminV1APIUserPatchRes, error)

func (*Handler) AdminV1APIUseridGet

func (h *Handler) AdminV1APIUseridGet(ctx context.Context) (generated.AdminV1APIUseridGetRes, error)

func (*Handler) NewError

func (h *Handler) NewError(_ context.Context, err error) *generated.DefaultStatusCode

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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