steamworkswebapigen

package module
v0.0.0-...-2b58da8 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 8 Imported by: 0

README

steamworks-web-api-gen-go

SteamWorks Web API interface generator for Go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FuncMap = template.FuncMap{
		"convertType":        convertType,
		"convertArg":         convertArg,
		"convertToString":    convertToString,
		"camelCase":          camelCase,
		"getInputName":       getInputName,
		"convertMapFieldKey": convertMapFieldKey,
	}
)

Functions

This section is empty.

Types

type GetSupportedAPIListResponse

type GetSupportedAPIListResponse struct {
	Apilist struct {
		Interfaces []Interface `json:"interfaces"`
	} `json:"apilist"`
}

func GetSupportedAPIList

func GetSupportedAPIList(key string) (*GetSupportedAPIListResponse, error)

type Interface

type Interface struct {
	Name    string   `json:"name"`
	Methods []Method `json:"methods"`
}

type Method

type Method struct {
	Name       string      `json:"name"`
	Version    int         `json:"version"`
	Httpmethod string      `json:"httpmethod"`
	Parameters []Parameter `json:"parameters"`
}

type Parameter

type Parameter struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Optional    bool   `json:"optional"`
	Description string `json:"description"`
}

type TemplateInjection

type TemplateInjection struct {
	AppVersion  string
	PackageName string

	Interfaces []Interface
}

Directories

Path Synopsis
Code generated by steamworkswebapigen.
Code generated by steamworkswebapigen.

Jump to

Keyboard shortcuts

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