base

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONResponse

func JSONResponse(m OneBD.Meta, data interface{}, err error)

Types

type ApiHandler

type ApiHandler struct {
	OneBD.BaseHandler
	UserHandler
}

func (*ApiHandler) Init

func (h *ApiHandler) Init(m OneBD.Meta) error

func (*ApiHandler) OnError

func (h *ApiHandler) OnError(err error)

func (*ApiHandler) OnResponse

func (h *ApiHandler) OnResponse(data interface{})

func (*ApiHandler) SetAccessDelta

func (h *ApiHandler) SetAccessDelta(d time.Duration) error

type AppHandler added in v1.0.0

type AppHandler struct {
	ApiHandler
	UUID string
}

func (*AppHandler) Init added in v1.0.0

func (h *AppHandler) Init(m OneBD.Meta) error

type UserHandler

type UserHandler struct {
	Payload *oalib.PayLoad
	// contains filtered or unexported fields
}

func (*UserHandler) GetAuth

func (h *UserHandler) GetAuth(ResourceID string, ResourceUUID ...string) oalib.AuthLevel

func (*UserHandler) Ignore

func (h *UserHandler) Ignore(methods ...rfc.Method)

func (*UserHandler) Init

func (h *UserHandler) Init(m OneBD.Meta) error

func (*UserHandler) ParsePayload

func (h *UserHandler) ParsePayload(m OneBD.Meta) error

Jump to

Keyboard shortcuts

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