model

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLEntry added in v0.5.0

type ACLEntry struct {
	ID         uuid.UUID
	UserID     uuid.UUID
	ModuleName string // "*" for all modules
	Permission Permission
	CreatedAt  time.Time
}

type FileMeta

type FileMeta struct {
	Filename    string
	Packages    []string
	Imports     []string
	RefPackages []string
}

type ParsedProtoFile

type ParsedProtoFile struct {
	Filename  string
	Proto     *unordered.Proto
	ProtoJson string
}

type Permission added in v0.5.0

type Permission string
const (
	PermissionRead  Permission = "read"
	PermissionWrite Permission = "write"
	PermissionAdmin Permission = "admin"
)

type TagMeta

type TagMeta struct {
	Packages    []string
	Imports     []string
	RefPackages []string
	FilesMeta   []*FileMeta
}

type User added in v0.5.0

type User struct {
	ID        uuid.UUID
	Name      string
	Token     string
	Type      UserType
	IsActive  bool
	CreatedAt time.Time
	UpdatedAt time.Time
}

type UserType added in v0.5.0

type UserType string
const (
	UserTypeUser UserType = "user"
	UserTypeBot  UserType = "bot"
)

Jump to

Keyboard shortcuts

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