types

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 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