types

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLevel

type AccessLevel struct {
	Role string `json:"role,omitempty"`
}

type Error

type Error struct {
	Message string `json:"message" pact:"example=user not found"`
}

type Order

type Order struct {
	ID   int    `json:"id" pact:"example=42"`
	Item string `json:"item" pact:"example=apple,regex=(apple|orange)"`
}

type User

type User struct {
	ID     int           `json:"id,omitempty"`
	Name   string        `json:"name,omitempty"`
	Access []AccessLevel `json:"access,omitempty"`
}

Jump to

Keyboard shortcuts

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