ecosystem

package
v0.0.0-...-852fb4d Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 4

README

Ecosystem models

Generation of models

go install golang.org/x/tools/cmd/stringer@latest
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@master # Use master branch
go generate -x ./...

Documentation

Overview

Package ecosystem provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version 2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ecosystems

func Ecosystems(opts ...EcosystemsOutputOption) []string

Types

type Ecosystem

type Ecosystem uint64

Ecosystem defines model for Ecosystem.

const (
	None Ecosystem = 0
	Npm  Ecosystem = 1
	Pypi Ecosystem = 2
)

Defines values for Ecosystem.

func All

func All() []Ecosystem

func FromString

func FromString(input string) (Ecosystem, error)

func FromUint64

func FromUint64(input uint64) (Ecosystem, error)

func (Ecosystem) Case

func (e Ecosystem) Case() string

func (Ecosystem) MarshalJSON

func (e Ecosystem) MarshalJSON() ([]byte, error)

func (*Ecosystem) Scan

func (e *Ecosystem) Scan(source any) error

Scan implements the sql.Scanner interface.

func (Ecosystem) String

func (i Ecosystem) String() string

func (*Ecosystem) UnmarshalJSON

func (e *Ecosystem) UnmarshalJSON(data []byte) error

func (*Ecosystem) UnmarshalText

func (e *Ecosystem) UnmarshalText(text []byte) error

type EcosystemsOutputOption

type EcosystemsOutputOption uint8
const (
	ApplyCase EcosystemsOutputOption = iota
	SingleQuotes
	WithValue
)

Jump to

Keyboard shortcuts

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