ds_sdk

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

README

ds-sdk

数据服务的SDK

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitInstance

func InitInstance(token string, baseUrl string, namespace string, opts ...Option) error

Types

type DataSource

type DataSource struct {
	Name string
	Type string
	Spec string
}

type Option

type Option func(opts *Options)

func WithDataSource

func WithDataSource(dataSources []DataSource) Option

func WithTimeout

func WithTimeout(timeout time.Duration) Option

type Options

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

type SDK

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

func GetInstance

func GetInstance() *SDK

func New

func New(token string, baseUrl string, namespace string, opts ...Option) (*SDK, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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