assign

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = service.Config{
	Method: "POST",
	Path:   "/assign",
	Build:  Build,
}

Functions

func Build

func Build(
	requestID meta.RequestId,
	rawHeaders service.RawHeaders,
	rawBody service.RawBody,
	rawParams service.RawParams,
) (
	service.TPL, error,
)

Types

type AssignableStruct

type AssignableStruct struct {
	ID         string  `json:"-"`
	StatusName string  `json:"status_name,omitempty" assign:"status_name"`
	Error      *string `json:"error,omitempty" assign:"error"`
	Status     *int    `json:"status,omitempty" assign:"status"`
}

Types that can be null and must remain in null must be pointers

type Event

type Event struct {
	Type string            `json:"type"`
	Body assign.Assignable `json:"body"`
}

Jump to

Keyboard shortcuts

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