api

package
v0.0.0-...-d69d474 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.9.0 DO NOT EDIT.

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.9.0 DO NOT EDIT.

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.9.0 DO NOT EDIT.

Index

Constants

View Source
const (
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type GetGroupListParams

type GetGroupListParams struct {
	// The group ID
	GroupId int `json:"groupId"`
}

GetGroupListParams defines parameters for GetGroupList.

type GetMacroListParams

type GetMacroListParams struct {
	// Group ID
	GroupId int `json:"groupId"`
}

GetMacroListParams defines parameters for GetMacroList.

type GetTemplateListParams

type GetTemplateListParams struct {
	// Group ID
	GroupId int `json:"groupId"`
}

GetTemplateListParams defines parameters for GetTemplateList.

type GetUserLoginParams

type GetUserLoginParams struct {
	// The user name
	Username string `json:"username"`

	// The user password
	Password string `json:"password"`
}

GetUserLoginParams defines parameters for GetUserLogin.

type Group

type Group struct {
	Id       *int    `json:"id,omitempty"`
	Name     *string `json:"name,omitempty"`
	ParentId *int    `json:"parentId,omitempty"`
}

Group defines model for Group.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type Macro

type Macro struct {
	Content         *string `json:"content,omitempty"`
	Id              *int    `json:"id,omitempty"`
	IsBeingEditedBy *int    `json:"isBeingEditedBy,omitempty"`
	Title           *string `json:"title,omitempty"`
}

Macro defines model for Macro.

type MiddlewareFunc

type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc

type PostGroupAddMacroParams

type PostGroupAddMacroParams struct {
	// Macro ID
	MacroId int `json:"macroId"`

	// Group ID
	GroupId int `json:"groupId"`
}

PostGroupAddMacroParams defines parameters for PostGroupAddMacro.

type PostGroupAddTemplateParams

type PostGroupAddTemplateParams struct {
	// Template ID
	TemplateId int `json:"templateId"`

	// Group ID
	GroupId int `json:"groupId"`
}

PostGroupAddTemplateParams defines parameters for PostGroupAddTemplate.

type PostGroupAddUserParams

type PostGroupAddUserParams struct {
	// User ID
	UserId int `json:"userId"`

	// Group ID
	GroupId int `json:"groupId"`
}

PostGroupAddUserParams defines parameters for PostGroupAddUser.

type PostGroupChangeParentGroupParams

type PostGroupChangeParentGroupParams struct {
	// Parent Group ID
	ParentGroupId int `json:"parentGroupId"`

	// Group ID
	GroupId int `json:"groupId"`
}

PostGroupChangeParentGroupParams defines parameters for PostGroupChangeParentGroup.

type PostGroupCreateParams

type PostGroupCreateParams struct {
	// Group title
	Name string `json:"name"`

	// Parent Group ID
	ParentGroupId int `json:"parentGroupId"`
}

PostGroupCreateParams defines parameters for PostGroupCreate.

type PostGroupRemoveMacroParams

type PostGroupRemoveMacroParams struct {
	// Macro ID
	MacroId int `json:"macroId"`

	// Group ID
	GroupId int `json:"groupId"`
}

PostGroupRemoveMacroParams defines parameters for PostGroupRemoveMacro.

type PostGroupRemoveTemplateParams

type PostGroupRemoveTemplateParams struct {
	// Template ID
	TemplateId int `json:"templateId"`

	// Group ID
	GroupId int `json:"groupId"`
}

PostGroupRemoveTemplateParams defines parameters for PostGroupRemoveTemplate.

type PostGroupRemoveUserParams

type PostGroupRemoveUserParams struct {
	// User ID
	UserId int `json:"userId"`

	// Group ID
	GroupId int `json:"groupId"`
}

PostGroupRemoveUserParams defines parameters for PostGroupRemoveUser.

type PostMacroCreateParams

type PostMacroCreateParams struct {
	// Macro title
	Name string `json:"name"`

	// Macro content
	Content string `json:"content"`

	// Group ID of the templates parent group
	InitialGroup int `json:"initialGroup"`
}

PostMacroCreateParams defines parameters for PostMacroCreate.

type PostMacroEditCheckinParams

type PostMacroEditCheckinParams struct {
	// Macro ID
	MacroId int `json:"macroId"`

	// Macro title
	Name string `json:"name"`

	// Macro content
	Content string `json:"content"`
}

PostMacroEditCheckinParams defines parameters for PostMacroEditCheckin.

type PostMacroEditCheckoutParams

type PostMacroEditCheckoutParams struct {
	// Macro ID
	MacroId int `json:"macroId"`
}

PostMacroEditCheckoutParams defines parameters for PostMacroEditCheckout.

type PostTemplateCreateParams

type PostTemplateCreateParams struct {
	// Template title
	Name string `json:"name"`

	// Template subject
	Subject string `json:"subject"`

	// Template content
	Content string `json:"content"`

	// Group ID of the templates parent group
	InitialGroup int `json:"initialGroup"`
}

PostTemplateCreateParams defines parameters for PostTemplateCreate.

type PostTemplateEditCheckinParams

type PostTemplateEditCheckinParams struct {
	// Template ID
	TemplateId int `json:"templateId"`

	// Template title
	Name string `json:"name"`

	// Template subject
	Subject string `json:"subject"`

	// Template content
	Content string `json:"content"`
}

PostTemplateEditCheckinParams defines parameters for PostTemplateEditCheckin.

type PostTemplateEditCheckoutParams

type PostTemplateEditCheckoutParams struct {
	// Template ID
	TemplateId int `json:"templateId"`
}

PostTemplateEditCheckoutParams defines parameters for PostTemplateEditCheckout.

type PostUserCreateParams

type PostUserCreateParams struct {
	// The user name
	Username string `json:"username"`

	// The first name of the user
	Firstname string `json:"firstname"`

	// The last name of the user
	Lastname string `json:"lastname"`

	// The password
	Password string `json:"password"`
}

PostUserCreateParams defines parameters for PostUserCreate.

type PostUserModifyUserIdParams

type PostUserModifyUserIdParams struct {
	// The user name
	Username string `json:"username"`

	// The first name of the user
	Firstname string `json:"firstname"`

	// The last name of the user
	Lastname string `json:"lastname"`

	// The password
	Password string `json:"password"`
}

PostUserModifyUserIdParams defines parameters for PostUserModifyUserId.

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type SchabloneServer

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

func NewSchabloneServer

func NewSchabloneServer(mariadbUsername string, mariadbPassword string, mariadbHost string) *SchabloneServer

Create new server

func (*SchabloneServer) GetGroupGetGroupId

func (s *SchabloneServer) GetGroupGetGroupId(w http.ResponseWriter, r *http.Request, groupId int)

(GET /group/get/{groupId})

func (*SchabloneServer) GetGroupList

func (s *SchabloneServer) GetGroupList(w http.ResponseWriter, r *http.Request, params GetGroupListParams)

(GET /group/list)

func (*SchabloneServer) GetMacroGetMacroId

func (s *SchabloneServer) GetMacroGetMacroId(w http.ResponseWriter, r *http.Request, macroId int)

(GET /macro/get/{macroId})

func (*SchabloneServer) GetMacroList

func (s *SchabloneServer) GetMacroList(w http.ResponseWriter, r *http.Request, params GetMacroListParams)

(GET /macro/list)

func (*SchabloneServer) GetTemplateGetTemplateId

func (s *SchabloneServer) GetTemplateGetTemplateId(w http.ResponseWriter, r *http.Request, templateId int)

(GET /template/get/{templateId})

func (*SchabloneServer) GetTemplateList

func (s *SchabloneServer) GetTemplateList(w http.ResponseWriter, r *http.Request, params GetTemplateListParams)

(GET /template/list)

func (*SchabloneServer) GetUserGetUserId

func (s *SchabloneServer) GetUserGetUserId(w http.ResponseWriter, r *http.Request, userId int)

(GET /user/get/{userId})

func (*SchabloneServer) GetUserList

func (s *SchabloneServer) GetUserList(w http.ResponseWriter, r *http.Request)

(GET /user/list)

func (*SchabloneServer) GetUserLogin

func (s *SchabloneServer) GetUserLogin(w http.ResponseWriter, r *http.Request, params GetUserLoginParams)

(GET /user/login)

func (*SchabloneServer) PostGroupAddMacro

func (s *SchabloneServer) PostGroupAddMacro(w http.ResponseWriter, r *http.Request, params PostGroupAddMacroParams)

(POST /group/add_macro)

func (*SchabloneServer) PostGroupAddTemplate

func (s *SchabloneServer) PostGroupAddTemplate(w http.ResponseWriter, r *http.Request, params PostGroupAddTemplateParams)

(POST /group/add_template)

func (*SchabloneServer) PostGroupAddUser

func (s *SchabloneServer) PostGroupAddUser(w http.ResponseWriter, r *http.Request, params PostGroupAddUserParams)

(POST /group/add_user)

func (*SchabloneServer) PostGroupChangeParentGroup

func (s *SchabloneServer) PostGroupChangeParentGroup(w http.ResponseWriter, r *http.Request, params PostGroupChangeParentGroupParams)

(POST /group/change_parent_group)

func (*SchabloneServer) PostGroupCreate

func (s *SchabloneServer) PostGroupCreate(w http.ResponseWriter, r *http.Request, params PostGroupCreateParams)

(POST /group/create)

func (*SchabloneServer) PostGroupRemoveMacro

func (s *SchabloneServer) PostGroupRemoveMacro(w http.ResponseWriter, r *http.Request, params PostGroupRemoveMacroParams)

(POST /group/remove_macro)

func (*SchabloneServer) PostGroupRemoveTemplate

func (s *SchabloneServer) PostGroupRemoveTemplate(w http.ResponseWriter, r *http.Request, params PostGroupRemoveTemplateParams)

(POST /group/remove_template)

func (*SchabloneServer) PostGroupRemoveUser

func (s *SchabloneServer) PostGroupRemoveUser(w http.ResponseWriter, r *http.Request, params PostGroupRemoveUserParams)

(POST /group/remove_user)

func (*SchabloneServer) PostMacroCreate

func (s *SchabloneServer) PostMacroCreate(w http.ResponseWriter, r *http.Request, params PostMacroCreateParams)

(POST /macro/create)

func (*SchabloneServer) PostMacroEditCheckin

func (s *SchabloneServer) PostMacroEditCheckin(w http.ResponseWriter, r *http.Request, params PostMacroEditCheckinParams)

(POST /macro/edit/checkin)

func (*SchabloneServer) PostMacroEditCheckout

func (s *SchabloneServer) PostMacroEditCheckout(w http.ResponseWriter, r *http.Request, params PostMacroEditCheckoutParams)

(POST /macro/edit/checkout)

func (*SchabloneServer) PostTemplateCreate

func (s *SchabloneServer) PostTemplateCreate(w http.ResponseWriter, r *http.Request, params PostTemplateCreateParams)

(POST /template/create)

func (*SchabloneServer) PostTemplateEditCheckin

func (s *SchabloneServer) PostTemplateEditCheckin(w http.ResponseWriter, r *http.Request, params PostTemplateEditCheckinParams)

(POST /template/edit/checkin)

func (*SchabloneServer) PostTemplateEditCheckout

func (s *SchabloneServer) PostTemplateEditCheckout(w http.ResponseWriter, r *http.Request, params PostTemplateEditCheckoutParams)

(POST /template/edit/checkout)

func (*SchabloneServer) PostUserCreate

func (s *SchabloneServer) PostUserCreate(w http.ResponseWriter, r *http.Request, params PostUserCreateParams)

(POST /user/create)

func (*SchabloneServer) PostUserModifyUserId

func (s *SchabloneServer) PostUserModifyUserId(w http.ResponseWriter, r *http.Request, userId int, params PostUserModifyUserIdParams)

(POST /user/modify/{userId})

type ServerInterface

type ServerInterface interface {

	// (POST /group/add_macro)
	PostGroupAddMacro(w http.ResponseWriter, r *http.Request, params PostGroupAddMacroParams)

	// (POST /group/add_template)
	PostGroupAddTemplate(w http.ResponseWriter, r *http.Request, params PostGroupAddTemplateParams)

	// (POST /group/add_user)
	PostGroupAddUser(w http.ResponseWriter, r *http.Request, params PostGroupAddUserParams)

	// (POST /group/change_parent_group)
	PostGroupChangeParentGroup(w http.ResponseWriter, r *http.Request, params PostGroupChangeParentGroupParams)

	// (POST /group/create)
	PostGroupCreate(w http.ResponseWriter, r *http.Request, params PostGroupCreateParams)

	// (GET /group/get/{groupId})
	GetGroupGetGroupId(w http.ResponseWriter, r *http.Request, groupId int)

	// (GET /group/list)
	GetGroupList(w http.ResponseWriter, r *http.Request, params GetGroupListParams)

	// (POST /group/remove_macro)
	PostGroupRemoveMacro(w http.ResponseWriter, r *http.Request, params PostGroupRemoveMacroParams)

	// (POST /group/remove_template)
	PostGroupRemoveTemplate(w http.ResponseWriter, r *http.Request, params PostGroupRemoveTemplateParams)

	// (POST /group/remove_user)
	PostGroupRemoveUser(w http.ResponseWriter, r *http.Request, params PostGroupRemoveUserParams)

	// (POST /macro/create)
	PostMacroCreate(w http.ResponseWriter, r *http.Request, params PostMacroCreateParams)

	// (POST /macro/edit/checkin)
	PostMacroEditCheckin(w http.ResponseWriter, r *http.Request, params PostMacroEditCheckinParams)

	// (POST /macro/edit/checkout)
	PostMacroEditCheckout(w http.ResponseWriter, r *http.Request, params PostMacroEditCheckoutParams)

	// (GET /macro/get/{macroId})
	GetMacroGetMacroId(w http.ResponseWriter, r *http.Request, macroId int)

	// (GET /macro/list)
	GetMacroList(w http.ResponseWriter, r *http.Request, params GetMacroListParams)

	// (POST /template/create)
	PostTemplateCreate(w http.ResponseWriter, r *http.Request, params PostTemplateCreateParams)

	// (POST /template/edit/checkin)
	PostTemplateEditCheckin(w http.ResponseWriter, r *http.Request, params PostTemplateEditCheckinParams)

	// (POST /template/edit/checkout)
	PostTemplateEditCheckout(w http.ResponseWriter, r *http.Request, params PostTemplateEditCheckoutParams)

	// (GET /template/get/{templateId})
	GetTemplateGetTemplateId(w http.ResponseWriter, r *http.Request, templateId int)

	// (GET /template/list)
	GetTemplateList(w http.ResponseWriter, r *http.Request, params GetTemplateListParams)

	// (POST /user/create)
	PostUserCreate(w http.ResponseWriter, r *http.Request, params PostUserCreateParams)

	// (GET /user/get/{userId})
	GetUserGetUserId(w http.ResponseWriter, r *http.Request, userId int)

	// (GET /user/list)
	GetUserList(w http.ResponseWriter, r *http.Request)

	// (GET /user/login)
	GetUserLogin(w http.ResponseWriter, r *http.Request, params GetUserLoginParams)

	// (POST /user/modify/{userId})
	PostUserModifyUserId(w http.ResponseWriter, r *http.Request, userId int, params PostUserModifyUserIdParams)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) GetGroupGetGroupId

func (siw *ServerInterfaceWrapper) GetGroupGetGroupId(w http.ResponseWriter, r *http.Request)

GetGroupGetGroupId operation middleware

func (*ServerInterfaceWrapper) GetGroupList

func (siw *ServerInterfaceWrapper) GetGroupList(w http.ResponseWriter, r *http.Request)

GetGroupList operation middleware

func (*ServerInterfaceWrapper) GetMacroGetMacroId

func (siw *ServerInterfaceWrapper) GetMacroGetMacroId(w http.ResponseWriter, r *http.Request)

GetMacroGetMacroId operation middleware

func (*ServerInterfaceWrapper) GetMacroList

func (siw *ServerInterfaceWrapper) GetMacroList(w http.ResponseWriter, r *http.Request)

GetMacroList operation middleware

func (*ServerInterfaceWrapper) GetTemplateGetTemplateId

func (siw *ServerInterfaceWrapper) GetTemplateGetTemplateId(w http.ResponseWriter, r *http.Request)

GetTemplateGetTemplateId operation middleware

func (*ServerInterfaceWrapper) GetTemplateList

func (siw *ServerInterfaceWrapper) GetTemplateList(w http.ResponseWriter, r *http.Request)

GetTemplateList operation middleware

func (*ServerInterfaceWrapper) GetUserGetUserId

func (siw *ServerInterfaceWrapper) GetUserGetUserId(w http.ResponseWriter, r *http.Request)

GetUserGetUserId operation middleware

func (*ServerInterfaceWrapper) GetUserList

func (siw *ServerInterfaceWrapper) GetUserList(w http.ResponseWriter, r *http.Request)

GetUserList operation middleware

func (*ServerInterfaceWrapper) GetUserLogin

func (siw *ServerInterfaceWrapper) GetUserLogin(w http.ResponseWriter, r *http.Request)

GetUserLogin operation middleware

func (*ServerInterfaceWrapper) PostGroupAddMacro

func (siw *ServerInterfaceWrapper) PostGroupAddMacro(w http.ResponseWriter, r *http.Request)

PostGroupAddMacro operation middleware

func (*ServerInterfaceWrapper) PostGroupAddTemplate

func (siw *ServerInterfaceWrapper) PostGroupAddTemplate(w http.ResponseWriter, r *http.Request)

PostGroupAddTemplate operation middleware

func (*ServerInterfaceWrapper) PostGroupAddUser

func (siw *ServerInterfaceWrapper) PostGroupAddUser(w http.ResponseWriter, r *http.Request)

PostGroupAddUser operation middleware

func (*ServerInterfaceWrapper) PostGroupChangeParentGroup

func (siw *ServerInterfaceWrapper) PostGroupChangeParentGroup(w http.ResponseWriter, r *http.Request)

PostGroupChangeParentGroup operation middleware

func (*ServerInterfaceWrapper) PostGroupCreate

func (siw *ServerInterfaceWrapper) PostGroupCreate(w http.ResponseWriter, r *http.Request)

PostGroupCreate operation middleware

func (*ServerInterfaceWrapper) PostGroupRemoveMacro

func (siw *ServerInterfaceWrapper) PostGroupRemoveMacro(w http.ResponseWriter, r *http.Request)

PostGroupRemoveMacro operation middleware

func (*ServerInterfaceWrapper) PostGroupRemoveTemplate

func (siw *ServerInterfaceWrapper) PostGroupRemoveTemplate(w http.ResponseWriter, r *http.Request)

PostGroupRemoveTemplate operation middleware

func (*ServerInterfaceWrapper) PostGroupRemoveUser

func (siw *ServerInterfaceWrapper) PostGroupRemoveUser(w http.ResponseWriter, r *http.Request)

PostGroupRemoveUser operation middleware

func (*ServerInterfaceWrapper) PostMacroCreate

func (siw *ServerInterfaceWrapper) PostMacroCreate(w http.ResponseWriter, r *http.Request)

PostMacroCreate operation middleware

func (*ServerInterfaceWrapper) PostMacroEditCheckin

func (siw *ServerInterfaceWrapper) PostMacroEditCheckin(w http.ResponseWriter, r *http.Request)

PostMacroEditCheckin operation middleware

func (*ServerInterfaceWrapper) PostMacroEditCheckout

func (siw *ServerInterfaceWrapper) PostMacroEditCheckout(w http.ResponseWriter, r *http.Request)

PostMacroEditCheckout operation middleware

func (*ServerInterfaceWrapper) PostTemplateCreate

func (siw *ServerInterfaceWrapper) PostTemplateCreate(w http.ResponseWriter, r *http.Request)

PostTemplateCreate operation middleware

func (*ServerInterfaceWrapper) PostTemplateEditCheckin

func (siw *ServerInterfaceWrapper) PostTemplateEditCheckin(w http.ResponseWriter, r *http.Request)

PostTemplateEditCheckin operation middleware

func (*ServerInterfaceWrapper) PostTemplateEditCheckout

func (siw *ServerInterfaceWrapper) PostTemplateEditCheckout(w http.ResponseWriter, r *http.Request)

PostTemplateEditCheckout operation middleware

func (*ServerInterfaceWrapper) PostUserCreate

func (siw *ServerInterfaceWrapper) PostUserCreate(w http.ResponseWriter, r *http.Request)

PostUserCreate operation middleware

func (*ServerInterfaceWrapper) PostUserModifyUserId

func (siw *ServerInterfaceWrapper) PostUserModifyUserId(w http.ResponseWriter, r *http.Request)

PostUserModifyUserId operation middleware

type Template

type Template struct {
	AttachementIds  *[]int  `json:"attachementIds,omitempty"`
	Content         *string `json:"content,omitempty"`
	Id              *int    `json:"id,omitempty"`
	IsBeingEditedBy *int    `json:"isBeingEditedBy,omitempty"`
	Subject         *string `json:"subject,omitempty"`
	Title           *string `json:"title,omitempty"`
}

Template defines model for Template.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type User

type User struct {
	Firstname *string `json:"firstname,omitempty"`
	GroupIds  *[]int  `json:"groupIds,omitempty"`
	Id        *int    `json:"id,omitempty"`
	Lastname  *string `json:"lastname,omitempty"`
	Username  *string `json:"username,omitempty"`
}

User defines model for User.

Jump to

Keyboard shortcuts

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