templates

package
v0.0.0-...-5ded2de Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHandler

type HTTPHandler struct {
	Method         string
	API            string
	URL            string
	RequestType    string
	Params         []string
	Results        []string
	ResponseType   string
	ResponseParams []string
	Types          SerialisationTypes
}

type HTTPServer

type HTTPServer struct {
	API      string
	Imports  []string
	Paths    []Path
	Handlers []HTTPHandler
}

func (*HTTPServer) AddTo

func (s *HTTPServer) AddTo(file *os.File) error

type HttpClient

type HttpClient struct {
	Service string

	Type    string
	Method  string
	Params  []string
	Results []string

	RequestType string
	Request     map[string]string

	ResponseType   string
	ResponseParams []string

	Return []string
}

func (*HttpClient) AddTo

func (cl *HttpClient) AddTo(file *os.File) error

type Path

type Path struct {
	Camelcase string
	Lowercase string
}

type SerialisationTypes

type SerialisationTypes struct {
	Response []reader.TypeSignature
	Request  []reader.TypeSignature
}

type TSEnum

type TSEnum struct {
	Name   string
	Fields map[string]string
}

type TSInterface

type TSInterface struct {
	Name   string
	Fields []reader.TypeSignature
}

type TSService

type TSService struct {
	Name        string
	Interfaces  []TSInterface
	Enums       []TSEnum
	ModName     string
	MethodNames []string
}

func (*TSService) AddTo

func (tss *TSService) AddTo(file *os.File) error

Jump to

Keyboard shortcuts

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