store

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

README

Protocol Documentation

Table of Contents

Top

store/activity.proto

ActivityShorcutCreatePayload
Field Type Label Description
shortcut_id int32

ActivityShorcutViewPayload
Field Type Label Description
shortcut_id int32
ip string
referer string
user_agent string

Top

store/common.proto

RowStatus
Name Number Description
ROW_STATUS_UNSPECIFIED 0
NORMAL 1
ARCHIVED 2

Visibility
Name Number Description
VISIBILITY_UNSPECIFIED 0
PRIVATE 1
WORKSPACE 2
PUBLIC 3

Top

store/collection.proto

Collection
Field Type Label Description
id int32
creator_id int32
created_ts int64
updated_ts int64
name string
title string
description string
shortcut_ids int32 repeated
visibility Visibility

Top

store/shortcut.proto

OpenGraphMetadata
Field Type Label Description
title string
description string
image string

Shortcut
Field Type Label Description
id int32
creator_id int32
created_ts int64
updated_ts int64
row_status RowStatus
name string
link string
title string
tags string repeated
description string
visibility Visibility
og_metadata OpenGraphMetadata

Top

store/user_setting.proto

AccessTokensUserSetting
Field Type Label Description
access_tokens AccessTokensUserSetting.AccessToken repeated

AccessTokensUserSetting.AccessToken
Field Type Label Description
access_token string The access token is a JWT token. Including expiration time, issuer, etc.
description string A description for the access token.

UserSetting
Field Type Label Description
user_id int32
key UserSettingKey
access_tokens AccessTokensUserSetting
locale LocaleUserSetting
color_theme ColorThemeUserSetting

ColorThemeUserSetting
Name Number Description
COLOR_THEME_USER_SETTING_UNSPECIFIED 0
COLOR_THEME_USER_SETTING_SYSTEM 1
COLOR_THEME_USER_SETTING_LIGHT 2
COLOR_THEME_USER_SETTING_DARK 3

LocaleUserSetting
Name Number Description
LOCALE_USER_SETTING_UNSPECIFIED 0
LOCALE_USER_SETTING_EN 1
LOCALE_USER_SETTING_ZH 2

UserSettingKey
Name Number Description
USER_SETTING_KEY_UNSPECIFIED 0
USER_SETTING_ACCESS_TOKENS 1 Access tokens for the user.
USER_SETTING_LOCALE 2 Locale for the user.
USER_SETTING_COLOR_THEME 3 Color theme for the user.

Top

store/workspace_setting.proto

AutoBackupWorkspaceSetting
Field Type Label Description
enabled bool Whether auto backup is enabled.
cron_expression string The cron expression for auto backup. For example, "0 0 0 * * *" means backup at 00:00:00 every day. See https://en.wikipedia.org/wiki/Cron for more details.
max_keep int32 The maximum number of backups to keep.

WorkspaceSetting
Field Type Label Description
key WorkspaceSettingKey
license_key string The license key of workspace.
secret_session string The secret session key used to encrypt session data.
enable_signup bool Whether to enable other users to sign up.
custom_style string The custom style.
custom_script string The custom script.
auto_backup AutoBackupWorkspaceSetting The auto backup setting. (Unimplemented)
instance_url string The instance URL of workspace.
default_visibility Visibility The default visibility of shortcuts and collections.
favicon_provider string The url of custom favicon provider. e.g. https://github.com/yourselfhosted/favicons

WorkspaceSettingKey
Name Number Description
WORKSPACE_SETTING_KEY_UNSPECIFIED 0
WORKSPACE_SETTING_LICENSE_KEY 1 The license key.
WORKSPACE_SETTING_SECRET_SESSION 2 The secret session key used to encrypt session data.
WORKSAPCE_SETTING_ENABLE_SIGNUP 3 Whether to enable other users to sign up.
WORKSPACE_SETTING_CUSTOM_STYLE 4 The custom style.
WORKSPACE_SETTING_CUSTOM_SCRIPT 5 The custom script.
WORKSPACE_SETTING_AUTO_BACKUP 6 The auto backup setting.
WORKSPACE_SETTING_INSTANCE_URL 7 The instance URL.
WORKSPACE_SETTING_DEFAULT_VISIBILITY 8 The default visibility of shortcuts and collections.
WORKSPACE_SETTING_FAVICON_PROVIDER 9 The url of custom favicon provider.

Scalar Value Types

.proto Type Notes C++ Java Python Go C# PHP Ruby
double double double float float64 double float Float
float float float float float32 float float Float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int32 int int int32 int integer Bignum or Fixnum (as required)
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int64 long int/long int64 long integer/string Bignum
uint32 Uses variable-length encoding. uint32 int int/long uint32 uint integer Bignum or Fixnum (as required)
uint64 Uses variable-length encoding. uint64 long int/long uint64 ulong integer/string Bignum or Fixnum (as required)
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int int32 int integer Bignum or Fixnum (as required)
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long int64 long integer/string Bignum
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int uint32 uint integer Bignum or Fixnum (as required)
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long uint64 ulong integer/string Bignum
sfixed32 Always four bytes. int32 int int int32 int integer Bignum or Fixnum (as required)
sfixed64 Always eight bytes. int64 long int/long int64 long integer/string Bignum
bool bool boolean boolean bool bool boolean TrueClass/FalseClass
string A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode string string string String (UTF-8)
bytes May contain any arbitrary sequence of bytes. string ByteString str []byte ByteString string String (ASCII-8BIT)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RowStatus_name = map[int32]string{
		0: "ROW_STATUS_UNSPECIFIED",
		1: "NORMAL",
		2: "ARCHIVED",
	}
	RowStatus_value = map[string]int32{
		"ROW_STATUS_UNSPECIFIED": 0,
		"NORMAL":                 1,
		"ARCHIVED":               2,
	}
)

Enum value maps for RowStatus.

View Source
var (
	Visibility_name = map[int32]string{
		0: "VISIBILITY_UNSPECIFIED",
		1: "PRIVATE",
		2: "WORKSPACE",
		3: "PUBLIC",
	}
	Visibility_value = map[string]int32{
		"VISIBILITY_UNSPECIFIED": 0,
		"PRIVATE":                1,
		"WORKSPACE":              2,
		"PUBLIC":                 3,
	}
)

Enum value maps for Visibility.

View Source
var (
	UserSettingKey_name = map[int32]string{
		0: "USER_SETTING_KEY_UNSPECIFIED",
		1: "USER_SETTING_ACCESS_TOKENS",
		2: "USER_SETTING_LOCALE",
		3: "USER_SETTING_COLOR_THEME",
	}
	UserSettingKey_value = map[string]int32{
		"USER_SETTING_KEY_UNSPECIFIED": 0,
		"USER_SETTING_ACCESS_TOKENS":   1,
		"USER_SETTING_LOCALE":          2,
		"USER_SETTING_COLOR_THEME":     3,
	}
)

Enum value maps for UserSettingKey.

View Source
var (
	LocaleUserSetting_name = map[int32]string{
		0: "LOCALE_USER_SETTING_UNSPECIFIED",
		1: "LOCALE_USER_SETTING_EN",
		2: "LOCALE_USER_SETTING_ZH",
	}
	LocaleUserSetting_value = map[string]int32{
		"LOCALE_USER_SETTING_UNSPECIFIED": 0,
		"LOCALE_USER_SETTING_EN":          1,
		"LOCALE_USER_SETTING_ZH":          2,
	}
)

Enum value maps for LocaleUserSetting.

View Source
var (
	ColorThemeUserSetting_name = map[int32]string{
		0: "COLOR_THEME_USER_SETTING_UNSPECIFIED",
		1: "COLOR_THEME_USER_SETTING_SYSTEM",
		2: "COLOR_THEME_USER_SETTING_LIGHT",
		3: "COLOR_THEME_USER_SETTING_DARK",
	}
	ColorThemeUserSetting_value = map[string]int32{
		"COLOR_THEME_USER_SETTING_UNSPECIFIED": 0,
		"COLOR_THEME_USER_SETTING_SYSTEM":      1,
		"COLOR_THEME_USER_SETTING_LIGHT":       2,
		"COLOR_THEME_USER_SETTING_DARK":        3,
	}
)

Enum value maps for ColorThemeUserSetting.

View Source
var (
	WorkspaceSettingKey_name = map[int32]string{
		0: "WORKSPACE_SETTING_KEY_UNSPECIFIED",
		1: "WORKSPACE_SETTING_LICENSE_KEY",
		2: "WORKSPACE_SETTING_SECRET_SESSION",
		3: "WORKSAPCE_SETTING_ENABLE_SIGNUP",
		4: "WORKSPACE_SETTING_CUSTOM_STYLE",
		5: "WORKSPACE_SETTING_CUSTOM_SCRIPT",
		6: "WORKSPACE_SETTING_AUTO_BACKUP",
		7: "WORKSPACE_SETTING_INSTANCE_URL",
		8: "WORKSPACE_SETTING_DEFAULT_VISIBILITY",
		9: "WORKSPACE_SETTING_FAVICON_PROVIDER",
	}
	WorkspaceSettingKey_value = map[string]int32{
		"WORKSPACE_SETTING_KEY_UNSPECIFIED":    0,
		"WORKSPACE_SETTING_LICENSE_KEY":        1,
		"WORKSPACE_SETTING_SECRET_SESSION":     2,
		"WORKSAPCE_SETTING_ENABLE_SIGNUP":      3,
		"WORKSPACE_SETTING_CUSTOM_STYLE":       4,
		"WORKSPACE_SETTING_CUSTOM_SCRIPT":      5,
		"WORKSPACE_SETTING_AUTO_BACKUP":        6,
		"WORKSPACE_SETTING_INSTANCE_URL":       7,
		"WORKSPACE_SETTING_DEFAULT_VISIBILITY": 8,
		"WORKSPACE_SETTING_FAVICON_PROVIDER":   9,
	}
)

Enum value maps for WorkspaceSettingKey.

View Source
var File_store_activity_proto protoreflect.FileDescriptor
View Source
var File_store_collection_proto protoreflect.FileDescriptor
View Source
var File_store_common_proto protoreflect.FileDescriptor
View Source
var File_store_shortcut_proto protoreflect.FileDescriptor
View Source
var File_store_user_setting_proto protoreflect.FileDescriptor
View Source
var File_store_workspace_setting_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessTokensUserSetting

type AccessTokensUserSetting struct {
	AccessTokens []*AccessTokensUserSetting_AccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessTokensUserSetting) Descriptor deprecated

func (*AccessTokensUserSetting) Descriptor() ([]byte, []int)

Deprecated: Use AccessTokensUserSetting.ProtoReflect.Descriptor instead.

func (*AccessTokensUserSetting) GetAccessTokens

func (*AccessTokensUserSetting) ProtoMessage

func (*AccessTokensUserSetting) ProtoMessage()

func (*AccessTokensUserSetting) ProtoReflect

func (x *AccessTokensUserSetting) ProtoReflect() protoreflect.Message

func (*AccessTokensUserSetting) Reset

func (x *AccessTokensUserSetting) Reset()

func (*AccessTokensUserSetting) String

func (x *AccessTokensUserSetting) String() string

type AccessTokensUserSetting_AccessToken

type AccessTokensUserSetting_AccessToken struct {

	// The access token is a JWT token.
	// Including expiration time, issuer, etc.
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// A description for the access token.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessTokensUserSetting_AccessToken) Descriptor deprecated

func (*AccessTokensUserSetting_AccessToken) Descriptor() ([]byte, []int)

Deprecated: Use AccessTokensUserSetting_AccessToken.ProtoReflect.Descriptor instead.

func (*AccessTokensUserSetting_AccessToken) GetAccessToken

func (x *AccessTokensUserSetting_AccessToken) GetAccessToken() string

func (*AccessTokensUserSetting_AccessToken) GetDescription

func (x *AccessTokensUserSetting_AccessToken) GetDescription() string

func (*AccessTokensUserSetting_AccessToken) ProtoMessage

func (*AccessTokensUserSetting_AccessToken) ProtoMessage()

func (*AccessTokensUserSetting_AccessToken) ProtoReflect

func (*AccessTokensUserSetting_AccessToken) Reset

func (*AccessTokensUserSetting_AccessToken) String

type ActivityShorcutCreatePayload

type ActivityShorcutCreatePayload struct {
	ShortcutId int32 `protobuf:"varint,1,opt,name=shortcut_id,json=shortcutId,proto3" json:"shortcut_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivityShorcutCreatePayload) Descriptor deprecated

func (*ActivityShorcutCreatePayload) Descriptor() ([]byte, []int)

Deprecated: Use ActivityShorcutCreatePayload.ProtoReflect.Descriptor instead.

func (*ActivityShorcutCreatePayload) GetShortcutId

func (x *ActivityShorcutCreatePayload) GetShortcutId() int32

func (*ActivityShorcutCreatePayload) ProtoMessage

func (*ActivityShorcutCreatePayload) ProtoMessage()

func (*ActivityShorcutCreatePayload) ProtoReflect

func (*ActivityShorcutCreatePayload) Reset

func (x *ActivityShorcutCreatePayload) Reset()

func (*ActivityShorcutCreatePayload) String

type ActivityShorcutViewPayload

type ActivityShorcutViewPayload struct {
	ShortcutId int32  `protobuf:"varint,1,opt,name=shortcut_id,json=shortcutId,proto3" json:"shortcut_id,omitempty"`
	Ip         string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	Referer    string `protobuf:"bytes,3,opt,name=referer,proto3" json:"referer,omitempty"`
	UserAgent  string `protobuf:"bytes,4,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivityShorcutViewPayload) Descriptor deprecated

func (*ActivityShorcutViewPayload) Descriptor() ([]byte, []int)

Deprecated: Use ActivityShorcutViewPayload.ProtoReflect.Descriptor instead.

func (*ActivityShorcutViewPayload) GetIp

func (*ActivityShorcutViewPayload) GetReferer

func (x *ActivityShorcutViewPayload) GetReferer() string

func (*ActivityShorcutViewPayload) GetShortcutId

func (x *ActivityShorcutViewPayload) GetShortcutId() int32

func (*ActivityShorcutViewPayload) GetUserAgent

func (x *ActivityShorcutViewPayload) GetUserAgent() string

func (*ActivityShorcutViewPayload) ProtoMessage

func (*ActivityShorcutViewPayload) ProtoMessage()

func (*ActivityShorcutViewPayload) ProtoReflect

func (*ActivityShorcutViewPayload) Reset

func (x *ActivityShorcutViewPayload) Reset()

func (*ActivityShorcutViewPayload) String

func (x *ActivityShorcutViewPayload) String() string

type AutoBackupWorkspaceSetting

type AutoBackupWorkspaceSetting struct {

	// Whether auto backup is enabled.
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// The cron expression for auto backup.
	// For example, "0 0 0 * * *" means backup at 00:00:00 every day.
	// See https://en.wikipedia.org/wiki/Cron for more details.
	CronExpression string `protobuf:"bytes,2,opt,name=cron_expression,json=cronExpression,proto3" json:"cron_expression,omitempty"`
	// The maximum number of backups to keep.
	MaxKeep int32 `protobuf:"varint,3,opt,name=max_keep,json=maxKeep,proto3" json:"max_keep,omitempty"`
	// contains filtered or unexported fields
}

func (*AutoBackupWorkspaceSetting) Descriptor deprecated

func (*AutoBackupWorkspaceSetting) Descriptor() ([]byte, []int)

Deprecated: Use AutoBackupWorkspaceSetting.ProtoReflect.Descriptor instead.

func (*AutoBackupWorkspaceSetting) GetCronExpression

func (x *AutoBackupWorkspaceSetting) GetCronExpression() string

func (*AutoBackupWorkspaceSetting) GetEnabled

func (x *AutoBackupWorkspaceSetting) GetEnabled() bool

func (*AutoBackupWorkspaceSetting) GetMaxKeep

func (x *AutoBackupWorkspaceSetting) GetMaxKeep() int32

func (*AutoBackupWorkspaceSetting) ProtoMessage

func (*AutoBackupWorkspaceSetting) ProtoMessage()

func (*AutoBackupWorkspaceSetting) ProtoReflect

func (*AutoBackupWorkspaceSetting) Reset

func (x *AutoBackupWorkspaceSetting) Reset()

func (*AutoBackupWorkspaceSetting) String

func (x *AutoBackupWorkspaceSetting) String() string

type Collection

type Collection struct {
	Id          int32      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatorId   int32      `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
	CreatedTs   int64      `protobuf:"varint,3,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	UpdatedTs   int64      `protobuf:"varint,4,opt,name=updated_ts,json=updatedTs,proto3" json:"updated_ts,omitempty"`
	Name        string     `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Title       string     `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
	Description string     `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	ShortcutIds []int32    `protobuf:"varint,9,rep,packed,name=shortcut_ids,json=shortcutIds,proto3" json:"shortcut_ids,omitempty"`
	Visibility  Visibility `protobuf:"varint,10,opt,name=visibility,proto3,enum=slash.store.Visibility" json:"visibility,omitempty"`
	// contains filtered or unexported fields
}

func (*Collection) Descriptor deprecated

func (*Collection) Descriptor() ([]byte, []int)

Deprecated: Use Collection.ProtoReflect.Descriptor instead.

func (*Collection) GetCreatedTs

func (x *Collection) GetCreatedTs() int64

func (*Collection) GetCreatorId

func (x *Collection) GetCreatorId() int32

func (*Collection) GetDescription

func (x *Collection) GetDescription() string

func (*Collection) GetId

func (x *Collection) GetId() int32

func (*Collection) GetName

func (x *Collection) GetName() string

func (*Collection) GetShortcutIds

func (x *Collection) GetShortcutIds() []int32

func (*Collection) GetTitle

func (x *Collection) GetTitle() string

func (*Collection) GetUpdatedTs

func (x *Collection) GetUpdatedTs() int64

func (*Collection) GetVisibility

func (x *Collection) GetVisibility() Visibility

func (*Collection) ProtoMessage

func (*Collection) ProtoMessage()

func (*Collection) ProtoReflect

func (x *Collection) ProtoReflect() protoreflect.Message

func (*Collection) Reset

func (x *Collection) Reset()

func (*Collection) String

func (x *Collection) String() string

type ColorThemeUserSetting

type ColorThemeUserSetting int32
const (
	ColorThemeUserSetting_COLOR_THEME_USER_SETTING_UNSPECIFIED ColorThemeUserSetting = 0
	ColorThemeUserSetting_COLOR_THEME_USER_SETTING_SYSTEM      ColorThemeUserSetting = 1
	ColorThemeUserSetting_COLOR_THEME_USER_SETTING_LIGHT       ColorThemeUserSetting = 2
	ColorThemeUserSetting_COLOR_THEME_USER_SETTING_DARK        ColorThemeUserSetting = 3
)

func (ColorThemeUserSetting) Descriptor

func (ColorThemeUserSetting) Enum

func (ColorThemeUserSetting) EnumDescriptor deprecated

func (ColorThemeUserSetting) EnumDescriptor() ([]byte, []int)

Deprecated: Use ColorThemeUserSetting.Descriptor instead.

func (ColorThemeUserSetting) Number

func (ColorThemeUserSetting) String

func (x ColorThemeUserSetting) String() string

func (ColorThemeUserSetting) Type

type LocaleUserSetting

type LocaleUserSetting int32
const (
	LocaleUserSetting_LOCALE_USER_SETTING_UNSPECIFIED LocaleUserSetting = 0
	LocaleUserSetting_LOCALE_USER_SETTING_EN          LocaleUserSetting = 1
	LocaleUserSetting_LOCALE_USER_SETTING_ZH          LocaleUserSetting = 2
)

func (LocaleUserSetting) Descriptor

func (LocaleUserSetting) Enum

func (LocaleUserSetting) EnumDescriptor deprecated

func (LocaleUserSetting) EnumDescriptor() ([]byte, []int)

Deprecated: Use LocaleUserSetting.Descriptor instead.

func (LocaleUserSetting) Number

func (LocaleUserSetting) String

func (x LocaleUserSetting) String() string

func (LocaleUserSetting) Type

type OpenGraphMetadata

type OpenGraphMetadata struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Image       string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*OpenGraphMetadata) Descriptor deprecated

func (*OpenGraphMetadata) Descriptor() ([]byte, []int)

Deprecated: Use OpenGraphMetadata.ProtoReflect.Descriptor instead.

func (*OpenGraphMetadata) GetDescription

func (x *OpenGraphMetadata) GetDescription() string

func (*OpenGraphMetadata) GetImage

func (x *OpenGraphMetadata) GetImage() string

func (*OpenGraphMetadata) GetTitle

func (x *OpenGraphMetadata) GetTitle() string

func (*OpenGraphMetadata) ProtoMessage

func (*OpenGraphMetadata) ProtoMessage()

func (*OpenGraphMetadata) ProtoReflect

func (x *OpenGraphMetadata) ProtoReflect() protoreflect.Message

func (*OpenGraphMetadata) Reset

func (x *OpenGraphMetadata) Reset()

func (*OpenGraphMetadata) String

func (x *OpenGraphMetadata) String() string

type RowStatus

type RowStatus int32
const (
	RowStatus_ROW_STATUS_UNSPECIFIED RowStatus = 0
	RowStatus_NORMAL                 RowStatus = 1
	RowStatus_ARCHIVED               RowStatus = 2
)

func (RowStatus) Descriptor

func (RowStatus) Descriptor() protoreflect.EnumDescriptor

func (RowStatus) Enum

func (x RowStatus) Enum() *RowStatus

func (RowStatus) EnumDescriptor deprecated

func (RowStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use RowStatus.Descriptor instead.

func (RowStatus) Number

func (x RowStatus) Number() protoreflect.EnumNumber

func (RowStatus) String

func (x RowStatus) String() string

func (RowStatus) Type

type Shortcut

type Shortcut struct {
	Id          int32              `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatorId   int32              `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
	CreatedTs   int64              `protobuf:"varint,3,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	UpdatedTs   int64              `protobuf:"varint,4,opt,name=updated_ts,json=updatedTs,proto3" json:"updated_ts,omitempty"`
	RowStatus   RowStatus          `protobuf:"varint,5,opt,name=row_status,json=rowStatus,proto3,enum=slash.store.RowStatus" json:"row_status,omitempty"`
	Name        string             `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Link        string             `protobuf:"bytes,7,opt,name=link,proto3" json:"link,omitempty"`
	Title       string             `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	Tags        []string           `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
	Description string             `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"`
	Visibility  Visibility         `protobuf:"varint,11,opt,name=visibility,proto3,enum=slash.store.Visibility" json:"visibility,omitempty"`
	OgMetadata  *OpenGraphMetadata `protobuf:"bytes,12,opt,name=og_metadata,json=ogMetadata,proto3" json:"og_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Shortcut) Descriptor deprecated

func (*Shortcut) Descriptor() ([]byte, []int)

Deprecated: Use Shortcut.ProtoReflect.Descriptor instead.

func (*Shortcut) GetCreatedTs

func (x *Shortcut) GetCreatedTs() int64

func (*Shortcut) GetCreatorId

func (x *Shortcut) GetCreatorId() int32

func (*Shortcut) GetDescription

func (x *Shortcut) GetDescription() string

func (*Shortcut) GetId

func (x *Shortcut) GetId() int32
func (x *Shortcut) GetLink() string

func (*Shortcut) GetName

func (x *Shortcut) GetName() string

func (*Shortcut) GetOgMetadata

func (x *Shortcut) GetOgMetadata() *OpenGraphMetadata

func (*Shortcut) GetRowStatus

func (x *Shortcut) GetRowStatus() RowStatus

func (*Shortcut) GetTags

func (x *Shortcut) GetTags() []string

func (*Shortcut) GetTitle

func (x *Shortcut) GetTitle() string

func (*Shortcut) GetUpdatedTs

func (x *Shortcut) GetUpdatedTs() int64

func (*Shortcut) GetVisibility

func (x *Shortcut) GetVisibility() Visibility

func (*Shortcut) ProtoMessage

func (*Shortcut) ProtoMessage()

func (*Shortcut) ProtoReflect

func (x *Shortcut) ProtoReflect() protoreflect.Message

func (*Shortcut) Reset

func (x *Shortcut) Reset()

func (*Shortcut) String

func (x *Shortcut) String() string

type UserSetting

type UserSetting struct {
	UserId int32          `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Key    UserSettingKey `protobuf:"varint,2,opt,name=key,proto3,enum=slash.store.UserSettingKey" json:"key,omitempty"`
	// Types that are assignable to Value:
	//
	//	*UserSetting_AccessTokens
	//	*UserSetting_Locale
	//	*UserSetting_ColorTheme
	Value isUserSetting_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*UserSetting) Descriptor deprecated

func (*UserSetting) Descriptor() ([]byte, []int)

Deprecated: Use UserSetting.ProtoReflect.Descriptor instead.

func (*UserSetting) GetAccessTokens

func (x *UserSetting) GetAccessTokens() *AccessTokensUserSetting

func (*UserSetting) GetColorTheme

func (x *UserSetting) GetColorTheme() ColorThemeUserSetting

func (*UserSetting) GetKey

func (x *UserSetting) GetKey() UserSettingKey

func (*UserSetting) GetLocale

func (x *UserSetting) GetLocale() LocaleUserSetting

func (*UserSetting) GetUserId

func (x *UserSetting) GetUserId() int32

func (*UserSetting) GetValue

func (m *UserSetting) GetValue() isUserSetting_Value

func (*UserSetting) ProtoMessage

func (*UserSetting) ProtoMessage()

func (*UserSetting) ProtoReflect

func (x *UserSetting) ProtoReflect() protoreflect.Message

func (*UserSetting) Reset

func (x *UserSetting) Reset()

func (*UserSetting) String

func (x *UserSetting) String() string

type UserSettingKey

type UserSettingKey int32
const (
	UserSettingKey_USER_SETTING_KEY_UNSPECIFIED UserSettingKey = 0
	// Access tokens for the user.
	UserSettingKey_USER_SETTING_ACCESS_TOKENS UserSettingKey = 1
	// Locale for the user.
	UserSettingKey_USER_SETTING_LOCALE UserSettingKey = 2
	// Color theme for the user.
	UserSettingKey_USER_SETTING_COLOR_THEME UserSettingKey = 3
)

func (UserSettingKey) Descriptor

func (UserSettingKey) Enum

func (x UserSettingKey) Enum() *UserSettingKey

func (UserSettingKey) EnumDescriptor deprecated

func (UserSettingKey) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserSettingKey.Descriptor instead.

func (UserSettingKey) Number

func (UserSettingKey) String

func (x UserSettingKey) String() string

func (UserSettingKey) Type

type UserSetting_AccessTokens

type UserSetting_AccessTokens struct {
	AccessTokens *AccessTokensUserSetting `protobuf:"bytes,3,opt,name=access_tokens,json=accessTokens,proto3,oneof"`
}

type UserSetting_ColorTheme

type UserSetting_ColorTheme struct {
	ColorTheme ColorThemeUserSetting `protobuf:"varint,5,opt,name=color_theme,json=colorTheme,proto3,enum=slash.store.ColorThemeUserSetting,oneof"`
}

type UserSetting_Locale

type UserSetting_Locale struct {
	Locale LocaleUserSetting `protobuf:"varint,4,opt,name=locale,proto3,enum=slash.store.LocaleUserSetting,oneof"`
}

type Visibility

type Visibility int32
const (
	Visibility_VISIBILITY_UNSPECIFIED Visibility = 0
	Visibility_PRIVATE                Visibility = 1
	Visibility_WORKSPACE              Visibility = 2
	Visibility_PUBLIC                 Visibility = 3
)

func (Visibility) Descriptor

func (Visibility) Descriptor() protoreflect.EnumDescriptor

func (Visibility) Enum

func (x Visibility) Enum() *Visibility

func (Visibility) EnumDescriptor deprecated

func (Visibility) EnumDescriptor() ([]byte, []int)

Deprecated: Use Visibility.Descriptor instead.

func (Visibility) Number

func (x Visibility) Number() protoreflect.EnumNumber

func (Visibility) String

func (x Visibility) String() string

func (Visibility) Type

type WorkspaceSetting

type WorkspaceSetting struct {
	Key WorkspaceSettingKey `protobuf:"varint,1,opt,name=key,proto3,enum=slash.store.WorkspaceSettingKey" json:"key,omitempty"`
	// Types that are assignable to Value:
	//
	//	*WorkspaceSetting_LicenseKey
	//	*WorkspaceSetting_SecretSession
	//	*WorkspaceSetting_EnableSignup
	//	*WorkspaceSetting_CustomStyle
	//	*WorkspaceSetting_CustomScript
	//	*WorkspaceSetting_AutoBackup
	//	*WorkspaceSetting_InstanceUrl
	//	*WorkspaceSetting_DefaultVisibility
	//	*WorkspaceSetting_FaviconProvider
	Value isWorkspaceSetting_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*WorkspaceSetting) Descriptor deprecated

func (*WorkspaceSetting) Descriptor() ([]byte, []int)

Deprecated: Use WorkspaceSetting.ProtoReflect.Descriptor instead.

func (*WorkspaceSetting) GetAutoBackup

func (x *WorkspaceSetting) GetAutoBackup() *AutoBackupWorkspaceSetting

func (*WorkspaceSetting) GetCustomScript

func (x *WorkspaceSetting) GetCustomScript() string

func (*WorkspaceSetting) GetCustomStyle

func (x *WorkspaceSetting) GetCustomStyle() string

func (*WorkspaceSetting) GetDefaultVisibility added in v1.0.0

func (x *WorkspaceSetting) GetDefaultVisibility() Visibility

func (*WorkspaceSetting) GetEnableSignup

func (x *WorkspaceSetting) GetEnableSignup() bool

func (*WorkspaceSetting) GetFaviconProvider added in v1.0.0

func (x *WorkspaceSetting) GetFaviconProvider() string

func (*WorkspaceSetting) GetInstanceUrl

func (x *WorkspaceSetting) GetInstanceUrl() string

func (*WorkspaceSetting) GetKey

func (*WorkspaceSetting) GetLicenseKey

func (x *WorkspaceSetting) GetLicenseKey() string

func (*WorkspaceSetting) GetSecretSession

func (x *WorkspaceSetting) GetSecretSession() string

func (*WorkspaceSetting) GetValue

func (m *WorkspaceSetting) GetValue() isWorkspaceSetting_Value

func (*WorkspaceSetting) ProtoMessage

func (*WorkspaceSetting) ProtoMessage()

func (*WorkspaceSetting) ProtoReflect

func (x *WorkspaceSetting) ProtoReflect() protoreflect.Message

func (*WorkspaceSetting) Reset

func (x *WorkspaceSetting) Reset()

func (*WorkspaceSetting) String

func (x *WorkspaceSetting) String() string

type WorkspaceSettingKey

type WorkspaceSettingKey int32
const (
	WorkspaceSettingKey_WORKSPACE_SETTING_KEY_UNSPECIFIED WorkspaceSettingKey = 0
	// The license key.
	WorkspaceSettingKey_WORKSPACE_SETTING_LICENSE_KEY WorkspaceSettingKey = 1
	// The secret session key used to encrypt session data.
	WorkspaceSettingKey_WORKSPACE_SETTING_SECRET_SESSION WorkspaceSettingKey = 2
	// Whether to enable other users to sign up.
	WorkspaceSettingKey_WORKSAPCE_SETTING_ENABLE_SIGNUP WorkspaceSettingKey = 3
	// The custom style.
	WorkspaceSettingKey_WORKSPACE_SETTING_CUSTOM_STYLE WorkspaceSettingKey = 4
	// The custom script.
	WorkspaceSettingKey_WORKSPACE_SETTING_CUSTOM_SCRIPT WorkspaceSettingKey = 5
	// The auto backup setting.
	WorkspaceSettingKey_WORKSPACE_SETTING_AUTO_BACKUP WorkspaceSettingKey = 6
	// The instance URL.
	WorkspaceSettingKey_WORKSPACE_SETTING_INSTANCE_URL WorkspaceSettingKey = 7
	// The default visibility of shortcuts and collections.
	WorkspaceSettingKey_WORKSPACE_SETTING_DEFAULT_VISIBILITY WorkspaceSettingKey = 8
	// The url of custom favicon provider.
	WorkspaceSettingKey_WORKSPACE_SETTING_FAVICON_PROVIDER WorkspaceSettingKey = 9
)

func (WorkspaceSettingKey) Descriptor

func (WorkspaceSettingKey) Enum

func (WorkspaceSettingKey) EnumDescriptor deprecated

func (WorkspaceSettingKey) EnumDescriptor() ([]byte, []int)

Deprecated: Use WorkspaceSettingKey.Descriptor instead.

func (WorkspaceSettingKey) Number

func (WorkspaceSettingKey) String

func (x WorkspaceSettingKey) String() string

func (WorkspaceSettingKey) Type

type WorkspaceSetting_AutoBackup

type WorkspaceSetting_AutoBackup struct {
	// The auto backup setting. (Unimplemented)
	AutoBackup *AutoBackupWorkspaceSetting `protobuf:"bytes,7,opt,name=auto_backup,json=autoBackup,proto3,oneof"`
}

type WorkspaceSetting_CustomScript

type WorkspaceSetting_CustomScript struct {
	// The custom script.
	CustomScript string `protobuf:"bytes,6,opt,name=custom_script,json=customScript,proto3,oneof"`
}

type WorkspaceSetting_CustomStyle

type WorkspaceSetting_CustomStyle struct {
	// The custom style.
	CustomStyle string `protobuf:"bytes,5,opt,name=custom_style,json=customStyle,proto3,oneof"`
}

type WorkspaceSetting_DefaultVisibility added in v1.0.0

type WorkspaceSetting_DefaultVisibility struct {
	// The default visibility of shortcuts and collections.
	DefaultVisibility Visibility `protobuf:"varint,9,opt,name=default_visibility,json=defaultVisibility,proto3,enum=slash.store.Visibility,oneof"`
}

type WorkspaceSetting_EnableSignup

type WorkspaceSetting_EnableSignup struct {
	// Whether to enable other users to sign up.
	EnableSignup bool `protobuf:"varint,4,opt,name=enable_signup,json=enableSignup,proto3,oneof"`
}

type WorkspaceSetting_FaviconProvider added in v1.0.0

type WorkspaceSetting_FaviconProvider struct {
	// The url of custom favicon provider. e.g. https://github.com/yourselfhosted/favicons
	FaviconProvider string `protobuf:"bytes,10,opt,name=favicon_provider,json=faviconProvider,proto3,oneof"`
}

type WorkspaceSetting_InstanceUrl

type WorkspaceSetting_InstanceUrl struct {
	// The instance URL of workspace.
	InstanceUrl string `protobuf:"bytes,8,opt,name=instance_url,json=instanceUrl,proto3,oneof"`
}

type WorkspaceSetting_LicenseKey

type WorkspaceSetting_LicenseKey struct {
	// The license key of workspace.
	LicenseKey string `protobuf:"bytes,2,opt,name=license_key,json=licenseKey,proto3,oneof"`
}

type WorkspaceSetting_SecretSession

type WorkspaceSetting_SecretSession struct {
	// The secret session key used to encrypt session data.
	SecretSession string `protobuf:"bytes,3,opt,name=secret_session,json=secretSession,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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