messages

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package messages provides the Messages and Message type to represent messages returned by the Splunk REST API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Value string `json:"text" xml:",chardata"`
	Code  string `json:"type" xml:"code,attr"`
}

Message represents the <msg> element of a <messages> entry.

func (Message) String

func (m Message) String() string

String returns the string representation of a message. It will be in the form:

Code: Value

type Messages

type Messages struct {
	XMLName string    `xml:"messages"`
	Items   []Message `json:"messages" xml:"msg"`
}

Messages represents the <messages> element of a <response> entry.

func (Messages) String

func (m Messages) String() string

String returns the string representation of Messages. If multiple Message items are present, they will be comma-separated.

Jump to

Keyboard shortcuts

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