dal

package
v0.0.98 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseEntity

type BaseEntity struct {
	CreatedAt time.Time
	UpdatedAt time.Time
}

type JsonField added in v0.0.8

type JsonField map[string]interface{}

func (*JsonField) Map added in v0.0.22

func (j *JsonField) Map() map[string]interface{}

func (*JsonField) Scan added in v0.0.8

func (j *JsonField) Scan(value interface{}) error

func (JsonField) Value added in v0.0.8

func (j JsonField) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type Resource

type Resource struct {
	BaseEntity

	Id string

	// Owner/Creator of this resource
	UserId string

	// Visibility status
	Visibility string //  "public" | "private" | "limited";

	// Who can see this score
	VisibleTo []string

	Version string
}

func (*Resource) IsVisibleTo

func (res *Resource) IsVisibleTo(userId string) bool

Jump to

Keyboard shortcuts

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