person

package
v0.0.0-...-3d79893 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(ctx context.Context, p Person) error

func Save

func Save(ctx context.Context, np NewPerson) (string, error)

Types

type NewPerson

type NewPerson struct {
	Name            string
	Type            string
	Role            *string
	ContactDuration *string
	Tags            []string
}

type Person

type Person struct {
	Id              string
	Name            string
	Type            string
	Role            *string
	ContactDuration *string
	Tags            []string
	UpdatedAt       time.Time
	CreatedAt       time.Time
}

func Delete

func Delete(ctx context.Context, id string) (Person, error)

func Find

func Find(ctx context.Context, id string) (Person, error)
func Search(ctx context.Context, search SearchPerson) ([]Person, error)

type SearchPerson

type SearchPerson struct {
	Tags []string
}

Jump to

Keyboard shortcuts

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