configuration

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 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 SetConfigResponse

type SetConfigResponse struct {
	Success     bool   `json:"success"`               // Success or failure of request itself.
	Description string `json:"description,omitempty"` // Info allied with the preceding result.
	// contains filtered or unexported fields
}

SetConfigResponse is for SMA to use when responding to an incoming request to PUT (i.e. UPDATE) a resource.

func (SetConfigResponse) MarshalJSON

func (sc SetConfigResponse) MarshalJSON() ([]byte, error)

Custom marshalling to make empty strings null

func (SetConfigResponse) String

func (sc SetConfigResponse) String() string

The toString function for SetConfigResponse struct

func (*SetConfigResponse) UnmarshalJSON

func (sc *SetConfigResponse) UnmarshalJSON(data []byte) error

Implements unmarshaling of JSON string to SetConfigResponse type instance

func (SetConfigResponse) Validate

func (sc SetConfigResponse) Validate() (bool, error)

Validate satisfies the Validator interface

Jump to

Keyboard shortcuts

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