review_config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 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 StatusSliceToJSON

func StatusSliceToJSON(in []Status) json.RawMessage

func TypeSliceToJSON

func TypeSliceToJSON(in []Type) json.RawMessage

func UserRoleSliceToJSON

func UserRoleSliceToJSON(in []UserRole) json.RawMessage

Types

type ReviewConfig

type ReviewConfig struct {
	UUID          uuid.UUID  `json:"uuid"`
	Types         []Type     `json:"types"`
	UserRoles     []UserRole `json:"user_roles"`
	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) String

func (e ReviewConfig) String() string

func (ReviewConfig) ToJSON

func (e ReviewConfig) ToJSON() json.RawMessage

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

type Type

type Type int64
const (
	TYPE_INVALID Type = iota
	TYPE_DEFAULT
	TYPE_PROJECT_VERSION
	TYPE_EXTENSION_VERSION
)

func JSONToTypeSlice

func JSONToTypeSlice(in json.RawMessage) []Type

func TypeFromPointerString

func TypeFromPointerString(in *string) Type

func TypeFromString

func TypeFromString(in string) Type

func (Type) String

func (e Type) String() string

func (Type) StringPtr

func (e Type) StringPtr() *string

func (Type) ToInt64

func (e Type) ToInt64() int64

type UserRole

type UserRole int64
const (
	USER_ROLE_INVALID UserRole = iota
	USER_ROLE_ADMIN
	USER_ROLE_DEVELOPER
	USER_ROLE_DATA_MANAGER
	USER_ROLE_DATA_ANALYST
	USER_ROLE_VIEWER
)

func JSONToUserRoleSlice

func JSONToUserRoleSlice(in json.RawMessage) []UserRole

func UserRoleFromPointerString

func UserRoleFromPointerString(in *string) UserRole

func UserRoleFromString

func UserRoleFromString(in string) UserRole

func (UserRole) String

func (e UserRole) String() string

func (UserRole) StringPtr

func (e UserRole) StringPtr() *string

func (UserRole) ToInt64

func (e UserRole) ToInt64() int64

Jump to

Keyboard shortcuts

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