factory

package
v0.6.0-rc.13 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientRegistry = &ClientFactory{}

ClientRegistry stores all clients defined by each provider

View Source
var ParseRegistry []model.Parser

ParseRegistry is the registry for all parsers defined by each provider

Functions

This section is empty.

Types

type ClientFactory

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

ClientFactory is a factory to store client

func (*ClientFactory) Add

func (c *ClientFactory) Add(provider string, newClient model.Client) error

Add adds client based on provider

func (*ClientFactory) Get

func (c *ClientFactory) Get(provider string) (model.Client, error)

Get gets client for a specified provider

Jump to

Keyboard shortcuts

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