repository

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const CREATED = "CREATED"
View Source
const DELETED = "DELETED"
View Source
const UPDATED = "UPDATED"

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorization

type Authorization struct {
	UserID             string              `json:"user_id"` // organization/tenant id
	Name               string              `json:"name"`    // organization/tenant name
	UserGroupID        map[string]struct{} `json:"user_group_id"`
	UiAndApiPermission map[string]bool     `json:"api_and_ui_permission"`
}

type AuthorizedUser

type AuthorizedUser struct {
	ID              string                   `json:"id"` // email
	Profile         UserProfile              `json:"profile"`
	GSI             GSIConfig                `json:"gsi"`
	MIP             MIPConfig                `json:"mip"`
	DefaultHomepage string                   `json:"default_homepage"`
	Authorization   map[string]Authorization `json:"authorization"` // organization/tenant id as key
}

type GSIConfig

type GSIConfig struct {
	Email string `json:"email"`
}

type MIPConfig

type MIPConfig struct {
	Email string `json:"email"`
}

type MyError

type MyError struct {
	Message string
}

func (*MyError) Error

func (m *MyError) Error() string

type UserGroup

type UserGroup struct {
	ID             string              `json:"id"`
	OwnerID        string              `json:"owner_id"`
	OrganizationID string              `json:"organization_id"`
	DisplayURL     string              `json:"display_url"`
	Name           string              `json:"name"`
	DisplayName    string              `json:"display_name"`
	Description    string              `json:"description"`
	Caption        string              `json:"caption"`
	Origin         string              `json:"origin"` // internal or external
	Icon           string              `json:"icon"`
	Color          string              `json:"color"`
	Avatar1x1      string              `json:"avatar"`
	Background3x1  string              `json:"background"`
	Members        map[string]struct{} `json:"members"`
	CreatedAt      string              `json:"created_at"`
}

type UserProfile

type UserProfile struct {
	ID               string `json:"id"`
	ImageURL         string `json:"image_url"`
	Name             string `json:"name"`
	DisplayName      string `json:"display_name"`
	Role             string `json:"role"`
	Description      string `json:"description"`
	Avatar1x1URL     string `json:"avatar_1x1_url"`
	Background3x1URL string `json:"background_3x1_url"`
	CreatedAt        string `json:"created_at"`
}

Jump to

Keyboard shortcuts

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