smartappgin

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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