mcp

package
v1.48.9 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MPL-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppID

func GetAppID(ctx context.Context) (string, bool)

func NamedOrInlineStruct

func NamedOrInlineStruct(meta map[uint32]*schema.Decl, t *schema.Type) (*schema.Struct, []*schema.Type)

NamedOrInlineStruct returns the struct type and type arguments for a named or inline struct. Returns nil if the type is neither a named struct nor an inline struct.

func StructBits

func StructBits(s *schema.Struct, method string, asResponse bool, asGoStruct bool, queryParamsAsObject bool) (query, headers, cookies, jsonBody string)

StructBits generates JSON representations of a struct's fields separated by location It returns query, headers, cookies, and JSON body as strings

func WithAppID

func WithAppID(ctx context.Context, appID string) context.Context

Types

type DescribedField

type DescribedField struct {
	*schema.Field
	SrcName  string
	Name     string
	Location FieldLocation
}

DescribedField is a field with additional metadata

type FieldLocation

type FieldLocation int

FieldLocation represents where a field is located in the API request/response

const (
	FieldLocationBody   FieldLocation = 0
	FieldLocationQuery  FieldLocation = 1
	FieldLocationHeader FieldLocation = 2
	FieldLocationCookie FieldLocation = 3
	FieldLocationUnused FieldLocation = 4
)

type Manager

type Manager struct {
	BaseURL string
	// contains filtered or unexported fields
}

func NewManager

func NewManager(apps *apps.Manager, cluster *sqldb.ClusterManager, ns *namespace.Manager, traces trace2.Store, runMgr *run.Manager, baseURL string) *Manager

func (*Manager) Serve

func (m *Manager) Serve(listener net.Listener) error

Jump to

Keyboard shortcuts

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