api

package
v0.0.0-...-5a6b2d2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TenantIDInterceptor

func TenantIDInterceptor(ctx context.Context, req *http.Request) error

TenantIDInterceptor is a client intercept that try to inject tenant id into request header. only support string and int type.

Types

type File

type File struct {
	*file.APIClient
	// contains filtered or unexported fields
}

func NewFile

func NewFile() *File

func (*File) Apply

func (f *File) Apply(sdk *SDK, cnf *conf.Configuration) error

type Msg

type Msg struct {
	*msg.APIClient
	// contains filtered or unexported fields
}

func NewMsg

func NewMsg() *Msg

func (*Msg) Apply

func (f *Msg) Apply(sdk *SDK, cnf *conf.Configuration) error

type Plugin

type Plugin interface {
	Apply(*SDK, *conf.Configuration) error
}

Plugin is the knockout service client plugin interface.

type SDK

type SDK struct {
	// contains filtered or unexported fields
}

SDK is the knockout service client SDK.

func NewSDK

func NewSDK(cnf *conf.Configuration) (sdk *SDK, err error)

NewSDK creates a new SDK.

func (*SDK) File

func (sdk *SDK) File() *File

File returns the file plugin.

func (*SDK) GetPlugin

func (sdk *SDK) GetPlugin(name string) (Plugin, bool)

GetPlugin returns a plugin by name.

func (*SDK) Msg

func (sdk *SDK) Msg() *Msg

Msg returns the msg plugin.

func (*SDK) RegisterPlugin

func (sdk *SDK) RegisterPlugin(name string, cnf *conf.Configuration) error

RegisterPlugin registers a plugin. Plugins are used to extend the SDK.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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