organisation

package
v0.52.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	Organisations []*Organisation
}

List is a list of Organisations, used for index action

func Unmarshal added in v0.12.0

func Unmarshal(input io.Reader) (List, error)

Unmarshal unmarshals a list of Organisations records

func (List) FindByNameOrUID added in v0.12.0

func (organisations List) FindByNameOrUID(nameOrUID string) Organisation

FindByNameOrUID look up a Organisation by name in List

type Organisation

type Organisation struct {
	ID   string `jsonapi:"primary,organisations"`
	Name string `jsonapi:"attr,name"`
}

Organisation represents a single organisation

Jump to

Keyboard shortcuts

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