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 ¶
RequestResult is result of RequestCallback
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.
Click to show internal directories.
Click to hide internal directories.