basicService

package
v3.1.20 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapUserConfig

func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)

Types

type Application

type Application struct {
	*kernel.ServiceContainer

	BaseClient *kernel.BaseClient

	Config *kernel.Config

	JSSDK           *jssdk.Client
	QRCode          *qrCode.Client
	Media           *media.Client
	URL             *url.Client
	ContentSecurity *contentSecurity.Client
}

func NewApplication

func NewApplication(config *UserConfig) (*Application, error)

func (*Application) GetAccessToken

func (app *Application) GetAccessToken() *kernel.AccessToken

func (*Application) GetComponent

func (app *Application) GetComponent(name string) interface{}

func (*Application) GetConfig

func (app *Application) GetConfig() *kernel.Config

func (*Application) GetContainer

func (app *Application) GetContainer() *kernel.ServiceContainer

type Log

type Log struct {
	Driver contract.LoggerInterface
	Level  string
	File   string
	Error  string
	ENV    string
}

type OAuth

type OAuth struct {
	Callback string
	Scopes   []string
}

type UserConfig

type UserConfig struct {
	AppID  string
	Secret string

	ResponseType string
	Log          Log
	OAuth        OAuth
	Cache        kernel.CacheInterface

	HttpDebug bool
	Debug     bool
	NotifyURL string
	Sandbox   bool
}

Jump to

Keyboard shortcuts

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