chemspell

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package chemspell accesses the NLM ChemSpell web service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayOfxsdstring

type ArrayOfxsdstring struct {
	Items     []string `xml:",any"`
	ArrayType string   `xml:"http://schemas.xmlsoap.org/soap/encoding/ arrayType,attr,omitempty"`
}

type Client

type Client struct{ SOAP SOAPdoer }

func NewClient

func NewClient() *Client

func (*Client) GetSugList

func (c *Client) GetSugList(ctx context.Context, getSugListRequest GetSugListRequest) (GetSugListResponse, error)

func (*Client) Main

func (c *Client) Main(ctx context.Context, mainRequest MainRequest) (MainResponse, error)

type GetSugListRequest

type GetSugListRequest struct {
	XMLName xml.Name `xml:"http://chemspell.nlm.nih.gov/axis/SpellAid.jws/axis/SpellAid.jws getSugListRequest"`
	Name    string   `xml:"http://chemspell.nlm.nih.gov/axis/SpellAid.jws/axis/SpellAid.jws name"`
	Src     string   `xml:"http://chemspell.nlm.nih.gov/axis/SpellAid.jws/axis/SpellAid.jws src"`
}

type GetSugListResponse

type GetSugListResponse struct {
	XMLName xml.Name `xml:"http://chemspell.nlm.nih.gov/axis/SpellAid.jws/axis/SpellAid.jws getSugListResponse"`
	Return  string   `xml:"http://chemspell.nlm.nih.gov/axis/SpellAid.jws/axis/SpellAid.jws return"`
}

type MainRequest

type MainRequest struct {
	XMLName xml.Name         `xml:"http://chemspell.nlm.nih.gov/axis/SpellAid.jws/axis/SpellAid.jws mainRequest"`
	Args    ArrayOfxsdstring `xml:"http://chemspell.nlm.nih.gov/axis/SpellAid.jws/axis/SpellAid.jws args"`
}

type MainResponse

type MainResponse struct {
	XMLName xml.Name `xml:"http://chemspell.nlm.nih.gov/axis/SpellAid.jws/axis/SpellAid.jws mainResponse"`
}

type SOAPdoer

type SOAPdoer interface {
	Do(ctx context.Context, action string, request any, response any) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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