Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultSmartApp ¶
type DefaultSmartApp struct { App smartappcore.SmartApp Authenticator *smartappcore.Authenticator RequestInterceptor RequestInterceptor ResponseInterceptor ResponseInterceptor }
func (*DefaultSmartApp) Handler ¶
func (a *DefaultSmartApp) Handler() gin.HandlerFunc
func (*DefaultSmartApp) SetPublicKey ¶
func (a *DefaultSmartApp) SetPublicKey(publicKey *rsa.PublicKey)
func (*DefaultSmartApp) SetRequestInterceptor ¶
func (a *DefaultSmartApp) SetRequestInterceptor(interceptor RequestInterceptor)
func (*DefaultSmartApp) SetResponseInterceptor ¶
func (a *DefaultSmartApp) SetResponseInterceptor(interceptor ResponseInterceptor)
type RequestInterceptor ¶
type RequestInterceptor func(params *smartappcore.SmartAppParams)
type ResponseInterceptor ¶
type ResponseInterceptor func(response *smartapp.ExecutionResponse, err error)
type SmartApp ¶
type SmartApp interface { Handler() gin.HandlerFunc SetPublicKey(publicKey *rsa.PublicKey) SetRequestInterceptor(interceptor RequestInterceptor) SetResponseInterceptor(interceptor ResponseInterceptor) }
func NewSmartApp ¶
func NewSmartApp(definition smartappcore.SmartAppDefinition) SmartApp
Click to show internal directories.
Click to hide internal directories.