codes

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code codes.Code
const (
	// Accepted device accepts request and action will be proceed in future.
	Accepted Code = iota + 4096
	// MethodNotAllowed device refuse call the method.
	MethodNotAllowed
	// Created success status response code indicates that the request has succeeded and has led to the creation of a resource.
	Created

	// InvalidCode cannot determines result from device code.
	InvalidCode Code = iota + (2 * 4096)
)

func (Code) String

func (c Code) String() string

func (Code) ToHTTPCode

func (c Code) ToHTTPCode() int

Jump to

Keyboard shortcuts

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