models

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrustedSourceIDSeparator = ";;;"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTrustedSourceBehaviorInput

type CreateTrustedSourceBehaviorInput struct {
	Name               string   `json:"name,omitempty"`
	Visibility         string   `json:"visibility,omitempty"`
	NumOfSources       int      `json:"numOfSources,omitempty"`
	SourcesIdentifiers []string `json:"sourcesIdentifiers,omitempty"`
}

type TrustedSourceBehavior

type TrustedSourceBehavior struct {
	ID                 string                `json:"id"`
	Name               string                `json:"name"`
	NumOfSources       int                   `json:"numOfSources"`
	SourcesIdentifiers []TrustedSourceSource `json:"sourcesIdentifiers,omitempty"`
}

type TrustedSourceSource

type TrustedSourceSource struct {
	ID     string `json:"id"`
	Source string `json:"source"`
}

func (*TrustedSourceSource) CreateSchemaID

func (trustedSource *TrustedSourceSource) CreateSchemaID() string

type UpdateTrustedSourceBehaviorInput

type UpdateTrustedSourceBehaviorInput struct {
	Name                        string   `json:"name,omitempty"`
	NumOfSources                int      `json:"numOfSources,omitempty"`
	AddSourcesIdentifiers       []string `json:"addSourcesIdentifiers,omitempty"`
	RemoveSourcesIdentifiersIDs []string `json:"removeSourcesIdentifiers,omitempty"`
}

Jump to

Keyboard shortcuts

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