Documentation ¶
Index ¶
- func SendOperateEvent(req, resp interface{}, hd *event.Header, od *event.OperateEventData) error
- type HTTPAuther
- func (a *HTTPAuther) Auth(r *http.Request, entry httpb.Entry) (authInfo interface{}, err error)
- func (a *HTTPAuther) ResponseHook(w http.ResponseWriter, r *http.Request, entry httpb.Entry)
- func (a *HTTPAuther) SetLogger(l logger.Logger)
- func (a *HTTPAuther) ValidateIdentity(ctx context.Context, accessToken string) (*token.Token, error)
- func (a *HTTPAuther) ValidatePermission(ctx context.Context, tk *token.Token, e httpb.Entry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendOperateEvent ¶
func SendOperateEvent(req, resp interface{}, hd *event.Header, od *event.OperateEventData) error
Types ¶
type HTTPAuther ¶
type HTTPAuther struct {
// contains filtered or unexported fields
}
internal todo
func (*HTTPAuther) ResponseHook ¶
func (a *HTTPAuther) ResponseHook(w http.ResponseWriter, r *http.Request, entry httpb.Entry)
func (*HTTPAuther) ValidateIdentity ¶
func (*HTTPAuther) ValidatePermission ¶
Click to show internal directories.
Click to hide internal directories.