types

package
v0.0.0-...-28313f1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success = iota
	ClientError
	ServiceError
)

Status returned of RequestCallback

View Source
const (
	ServiceName = "random"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestCallback

type RequestCallback func(reqID, input string) (output *ServiceOutput, requestResult *RequestResult)

type RequestResult

type RequestResult struct {
	State   State // Use status returned
	Message string
}

RequestResult is result of RequestCallback

type Response

type Response struct {
	Header string `json:"header"`
	Body   string `json:"body"`
}

type Result

type Result struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Result of RequestCallback

type ServiceInput

type ServiceInput map[string]interface{}

IRIS Hub Random Seed Input Body Schema

type ServiceOutput

type ServiceOutput struct {
	// random seed
	Seed string `json:"seed"`
}

IRIS Hub Random Seed Output Body Schema

func (*ServiceOutput) UnmarshalJSON

func (j *ServiceOutput) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type State

type State int

Jump to

Keyboard shortcuts

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