review_config

package
v1.0.40 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReviewConfigSliceToJSON

func ReviewConfigSliceToJSON(e []ReviewConfig) json.RawMessage

func ReviewConfigToJSON

func ReviewConfigToJSON(e ReviewConfig) json.RawMessage

func ReviewUserRoleSliceToJSON added in v1.0.17

func ReviewUserRoleSliceToJSON(in []ReviewUserRole) json.RawMessage

func StatusSliceToJSON

func StatusSliceToJSON(in []Status) json.RawMessage

Types

type ReviewConfig

type ReviewConfig struct {
	UUID            uuid.UUID        `json:"uuid"`
	ReviewUserRoles []ReviewUserRole `json:"review_user_roles"`
	ReviewUserUUIDs []uuid.UUID      `json:"review_user_uuids"`
	MinReviews      int64            `json:"min_reviews"`
	Status          Status           `json:"status"`
	CreatedAt       time.Time        `json:"created_at"`
	UpdatedAt       time.Time        `json:"updated_at"`
	CreatedByUUID   uuid.UUID        `json:"created_by_uuid"`
	UpdatedByUUID   uuid.UUID        `json:"updated_by_uuid"`
}

func NewReviewConfigSliceWithRandomValues

func NewReviewConfigSliceWithRandomValues(n int) []ReviewConfig

func NewReviewConfigWithRandomValues

func NewReviewConfigWithRandomValues() ReviewConfig

func ReviewConfigFromJSON

func ReviewConfigFromJSON(data json.RawMessage) ReviewConfig

func ReviewConfigSliceFromJSON

func ReviewConfigSliceFromJSON(data json.RawMessage) []ReviewConfig

func (ReviewConfig) ArrayFieldIdentifierToType

func (e ReviewConfig) ArrayFieldIdentifierToType() map[string]types.FieldType

func (ReviewConfig) EntityIdentifier

func (e ReviewConfig) EntityIdentifier() string

func (ReviewConfig) FieldIdentfierToTypeMap

func (e ReviewConfig) FieldIdentfierToTypeMap() map[string]types.FieldType

func (ReviewConfig) IsDependant

func (e ReviewConfig) IsDependant() bool

func (ReviewConfig) OrderedFieldIdentifiers added in v1.0.35

func (e ReviewConfig) OrderedFieldIdentifiers() []string

func (ReviewConfig) String

func (e ReviewConfig) String() string

func (ReviewConfig) ToJSON

func (e ReviewConfig) ToJSON() json.RawMessage

type ReviewUserRole added in v1.0.17

type ReviewUserRole int64
const (
	REVIEW_USER_ROLE_INVALID ReviewUserRole = iota
	REVIEW_USER_ROLE_ADMIN
	REVIEW_USER_ROLE_DEVELOPER
	REVIEW_USER_ROLE_DATA_MANAGER
	REVIEW_USER_ROLE_DATA_ANALYST
	REVIEW_USER_ROLE_VIEWER
)

func JSONToReviewUserRoleSlice added in v1.0.17

func JSONToReviewUserRoleSlice(in json.RawMessage) []ReviewUserRole

func ReviewUserRoleFromPointerString added in v1.0.17

func ReviewUserRoleFromPointerString(in *string) ReviewUserRole

func ReviewUserRoleFromString added in v1.0.17

func ReviewUserRoleFromString(in string) ReviewUserRole

func (ReviewUserRole) String added in v1.0.17

func (e ReviewUserRole) String() string

func (ReviewUserRole) StringPtr added in v1.0.17

func (e ReviewUserRole) StringPtr() *string

func (ReviewUserRole) ToInt64 added in v1.0.17

func (e ReviewUserRole) ToInt64() int64

type Status

type Status int64
const (
	STATUS_INVALID Status = iota
	STATUS_ACTIVE
	STATUS_DISABLED
)

func JSONToStatusSlice

func JSONToStatusSlice(in json.RawMessage) []Status

func StatusFromPointerString

func StatusFromPointerString(in *string) Status

func StatusFromString

func StatusFromString(in string) Status

func (Status) String

func (e Status) String() string

func (Status) StringPtr

func (e Status) StringPtr() *string

func (Status) ToInt64

func (e Status) ToInt64() int64

Jump to

Keyboard shortcuts

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