proxy

package
v0.0.0-...-89f386c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(query string) (*model.StockDetails, error)

func List

func List(query string) ([]model.Stock, error)

Types

type Proxy

type Proxy interface {
	List(query string) ([]model.Stock, error)
	Get(query string) (*model.StockDetails, error)
}

type SinaProxy

type SinaProxy struct{}

func (*SinaProxy) Get

func (p *SinaProxy) Get(query string) (*model.StockDetails, error)

func (*SinaProxy) List

func (p *SinaProxy) List(query string) ([]model.Stock, error)

Jump to

Keyboard shortcuts

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