Help us shape the future of Go! Take the 2026 Go Developer Survey

moapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 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 Connector

type Connector struct {
	Name    string  `json:"name"`
	Options Options `json:"options"`
	types.MetaInfo
	types.ConnectorMetadata
	// contains filtered or unexported fields
}

Connector connector

func (*Connector) Close

func (o *Connector) Close() error

Close connections

func (*Connector) GetMetaInfo

func (o *Connector) GetMetaInfo() types.MetaInfo

GetMetaInfo returns the meta information

func (*Connector) ID

func (o *Connector) ID() string

ID get connector id

func (*Connector) Is

func (o *Connector) Is(typ int) bool

Is the connections from dsl

func (*Connector) Query

func (o *Connector) Query() (query.Query, error)

Query get connector query interface

func (*Connector) Register

func (o *Connector) Register(file string, id string, dsl []byte) error

Register the connections from dsl

func (*Connector) Schema

func (o *Connector) Schema() (schema.Schema, error)

Schema get connector schema interface

func (*Connector) Setting

func (o *Connector) Setting() map[string]interface{}

Setting get the connection setting

type Options

type Options struct {
	Proxy string `json:"proxy,omitempty"`
	Model string `json:"model,omitempty"`
	Key   string `json:"key"`
}

Options the redis connector option

Jump to

Keyboard shortcuts

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