Documentation ¶
Overview ¶
Package apiv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
- func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterCollectionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCollectionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CollectionServiceClient) error
- func RegisterCollectionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCollectionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CollectionServiceServer) error
- func RegisterCollectionServiceServer(s grpc.ServiceRegistrar, srv CollectionServiceServer)
- func RegisterShortcutServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterShortcutServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ShortcutServiceClient) error
- func RegisterShortcutServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterShortcutServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ShortcutServiceServer) error
- func RegisterShortcutServiceServer(s grpc.ServiceRegistrar, srv ShortcutServiceServer)
- func RegisterSubscriptionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSubscriptionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SubscriptionServiceClient) error
- func RegisterSubscriptionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSubscriptionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SubscriptionServiceServer) error
- func RegisterSubscriptionServiceServer(s grpc.ServiceRegistrar, srv SubscriptionServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- func RegisterUserSettingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserSettingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserSettingServiceClient) error
- func RegisterUserSettingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserSettingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserSettingServiceServer) error
- func RegisterUserSettingServiceServer(s grpc.ServiceRegistrar, srv UserSettingServiceServer)
- func RegisterWorkspaceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWorkspaceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WorkspaceServiceClient) error
- func RegisterWorkspaceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWorkspaceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WorkspaceServiceServer) error
- func RegisterWorkspaceServiceServer(s grpc.ServiceRegistrar, srv WorkspaceServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type Collection
- func (*Collection) Descriptor() ([]byte, []int)deprecated
- func (x *Collection) GetCreatedTime() *timestamppb.Timestamp
- func (x *Collection) GetCreatorId() int32
- func (x *Collection) GetDescription() string
- func (x *Collection) GetId() int32
- func (x *Collection) GetName() string
- func (x *Collection) GetShortcutIds() []int32
- func (x *Collection) GetTitle() string
- func (x *Collection) GetUpdatedTime() *timestamppb.Timestamp
- func (x *Collection) GetVisibility() Visibility
- func (*Collection) ProtoMessage()
- func (x *Collection) ProtoReflect() protoreflect.Message
- func (x *Collection) Reset()
- func (x *Collection) String() string
- type CollectionServiceClient
- type CollectionServiceServer
- type CreateCollectionRequest
- func (*CreateCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCollectionRequest) GetCollection() *Collection
- func (*CreateCollectionRequest) ProtoMessage()
- func (x *CreateCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCollectionRequest) Reset()
- func (x *CreateCollectionRequest) String() string
- type CreateShortcutRequest
- func (*CreateShortcutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateShortcutRequest) GetShortcut() *Shortcut
- func (*CreateShortcutRequest) ProtoMessage()
- func (x *CreateShortcutRequest) ProtoReflect() protoreflect.Message
- func (x *CreateShortcutRequest) Reset()
- func (x *CreateShortcutRequest) String() string
- type CreateUserAccessTokenRequest
- func (*CreateUserAccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserAccessTokenRequest) GetDescription() string
- func (x *CreateUserAccessTokenRequest) GetExpiresAt() *timestamppb.Timestamp
- func (x *CreateUserAccessTokenRequest) GetId() int32
- func (*CreateUserAccessTokenRequest) ProtoMessage()
- func (x *CreateUserAccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserAccessTokenRequest) Reset()
- func (x *CreateUserAccessTokenRequest) String() string
- type CreateUserRequest
- type DeleteCollectionRequest
- func (*DeleteCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCollectionRequest) GetId() int32
- func (*DeleteCollectionRequest) ProtoMessage()
- func (x *DeleteCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCollectionRequest) Reset()
- func (x *DeleteCollectionRequest) String() string
- type DeleteShortcutRequest
- func (*DeleteShortcutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteShortcutRequest) GetId() int32
- func (*DeleteShortcutRequest) ProtoMessage()
- func (x *DeleteShortcutRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteShortcutRequest) Reset()
- func (x *DeleteShortcutRequest) String() string
- type DeleteSubscriptionRequest
- type DeleteUserAccessTokenRequest
- func (*DeleteUserAccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserAccessTokenRequest) GetAccessToken() string
- func (x *DeleteUserAccessTokenRequest) GetId() int32
- func (*DeleteUserAccessTokenRequest) ProtoMessage()
- func (x *DeleteUserAccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserAccessTokenRequest) Reset()
- func (x *DeleteUserAccessTokenRequest) String() string
- type DeleteUserRequest
- type GetAuthStatusRequest
- type GetCollectionByNameRequest
- func (*GetCollectionByNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCollectionByNameRequest) GetName() string
- func (*GetCollectionByNameRequest) ProtoMessage()
- func (x *GetCollectionByNameRequest) ProtoReflect() protoreflect.Message
- func (x *GetCollectionByNameRequest) Reset()
- func (x *GetCollectionByNameRequest) String() string
- type GetCollectionRequest
- func (*GetCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCollectionRequest) GetId() int32
- func (*GetCollectionRequest) ProtoMessage()
- func (x *GetCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *GetCollectionRequest) Reset()
- func (x *GetCollectionRequest) String() string
- type GetShortcutAnalyticsRequest
- func (*GetShortcutAnalyticsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetShortcutAnalyticsRequest) GetId() int32
- func (*GetShortcutAnalyticsRequest) ProtoMessage()
- func (x *GetShortcutAnalyticsRequest) ProtoReflect() protoreflect.Message
- func (x *GetShortcutAnalyticsRequest) Reset()
- func (x *GetShortcutAnalyticsRequest) String() string
- type GetShortcutAnalyticsResponse
- func (*GetShortcutAnalyticsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetShortcutAnalyticsResponse) GetBrowsers() []*GetShortcutAnalyticsResponse_AnalyticsItem
- func (x *GetShortcutAnalyticsResponse) GetDevices() []*GetShortcutAnalyticsResponse_AnalyticsItem
- func (x *GetShortcutAnalyticsResponse) GetReferences() []*GetShortcutAnalyticsResponse_AnalyticsItem
- func (*GetShortcutAnalyticsResponse) ProtoMessage()
- func (x *GetShortcutAnalyticsResponse) ProtoReflect() protoreflect.Message
- func (x *GetShortcutAnalyticsResponse) Reset()
- func (x *GetShortcutAnalyticsResponse) String() string
- type GetShortcutAnalyticsResponse_AnalyticsItem
- func (*GetShortcutAnalyticsResponse_AnalyticsItem) Descriptor() ([]byte, []int)deprecated
- func (x *GetShortcutAnalyticsResponse_AnalyticsItem) GetCount() int32
- func (x *GetShortcutAnalyticsResponse_AnalyticsItem) GetName() string
- func (*GetShortcutAnalyticsResponse_AnalyticsItem) ProtoMessage()
- func (x *GetShortcutAnalyticsResponse_AnalyticsItem) ProtoReflect() protoreflect.Message
- func (x *GetShortcutAnalyticsResponse_AnalyticsItem) Reset()
- func (x *GetShortcutAnalyticsResponse_AnalyticsItem) String() string
- type GetShortcutByNameRequest
- func (*GetShortcutByNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetShortcutByNameRequest) GetName() string
- func (*GetShortcutByNameRequest) ProtoMessage()
- func (x *GetShortcutByNameRequest) ProtoReflect() protoreflect.Message
- func (x *GetShortcutByNameRequest) Reset()
- func (x *GetShortcutByNameRequest) String() string
- type GetShortcutRequest
- type GetSubscriptionRequest
- type GetUserRequest
- type GetUserSettingRequest
- func (*GetUserSettingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserSettingRequest) GetId() int32
- func (*GetUserSettingRequest) ProtoMessage()
- func (x *GetUserSettingRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserSettingRequest) Reset()
- func (x *GetUserSettingRequest) String() string
- type GetWorkspaceProfileRequest
- type GetWorkspaceSettingRequest
- type IdentityProvider
- func (*IdentityProvider) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityProvider) GetConfig() *IdentityProviderConfig
- func (x *IdentityProvider) GetId() string
- func (x *IdentityProvider) GetTitle() string
- func (x *IdentityProvider) GetType() IdentityProvider_Type
- func (*IdentityProvider) ProtoMessage()
- func (x *IdentityProvider) ProtoReflect() protoreflect.Message
- func (x *IdentityProvider) Reset()
- func (x *IdentityProvider) String() string
- type IdentityProviderConfig
- func (*IdentityProviderConfig) Descriptor() ([]byte, []int)deprecated
- func (m *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config
- func (x *IdentityProviderConfig) GetOauth2() *IdentityProviderConfig_OAuth2Config
- func (*IdentityProviderConfig) ProtoMessage()
- func (x *IdentityProviderConfig) ProtoReflect() protoreflect.Message
- func (x *IdentityProviderConfig) Reset()
- func (x *IdentityProviderConfig) String() string
- type IdentityProviderConfig_FieldMapping
- func (*IdentityProviderConfig_FieldMapping) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityProviderConfig_FieldMapping) GetDisplayName() string
- func (x *IdentityProviderConfig_FieldMapping) GetIdentifier() string
- func (*IdentityProviderConfig_FieldMapping) ProtoMessage()
- func (x *IdentityProviderConfig_FieldMapping) ProtoReflect() protoreflect.Message
- func (x *IdentityProviderConfig_FieldMapping) Reset()
- func (x *IdentityProviderConfig_FieldMapping) String() string
- type IdentityProviderConfig_OAuth2Config
- func (*IdentityProviderConfig_OAuth2Config) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityProviderConfig_OAuth2Config) GetAuthUrl() string
- func (x *IdentityProviderConfig_OAuth2Config) GetClientId() string
- func (x *IdentityProviderConfig_OAuth2Config) GetClientSecret() string
- func (x *IdentityProviderConfig_OAuth2Config) GetFieldMapping() *IdentityProviderConfig_FieldMapping
- func (x *IdentityProviderConfig_OAuth2Config) GetScopes() []string
- func (x *IdentityProviderConfig_OAuth2Config) GetTokenUrl() string
- func (x *IdentityProviderConfig_OAuth2Config) GetUserInfoUrl() string
- func (*IdentityProviderConfig_OAuth2Config) ProtoMessage()
- func (x *IdentityProviderConfig_OAuth2Config) ProtoReflect() protoreflect.Message
- func (x *IdentityProviderConfig_OAuth2Config) Reset()
- func (x *IdentityProviderConfig_OAuth2Config) String() string
- type IdentityProviderConfig_Oauth2
- type IdentityProvider_Type
- func (IdentityProvider_Type) Descriptor() protoreflect.EnumDescriptor
- func (x IdentityProvider_Type) Enum() *IdentityProvider_Type
- func (IdentityProvider_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x IdentityProvider_Type) Number() protoreflect.EnumNumber
- func (x IdentityProvider_Type) String() string
- func (IdentityProvider_Type) Type() protoreflect.EnumType
- type ListCollectionsRequest
- type ListCollectionsResponse
- func (*ListCollectionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectionsResponse) GetCollections() []*Collection
- func (*ListCollectionsResponse) ProtoMessage()
- func (x *ListCollectionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCollectionsResponse) Reset()
- func (x *ListCollectionsResponse) String() string
- type ListShortcutsRequest
- type ListShortcutsResponse
- func (*ListShortcutsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListShortcutsResponse) GetShortcuts() []*Shortcut
- func (*ListShortcutsResponse) ProtoMessage()
- func (x *ListShortcutsResponse) ProtoReflect() protoreflect.Message
- func (x *ListShortcutsResponse) Reset()
- func (x *ListShortcutsResponse) String() string
- type ListUserAccessTokensRequest
- func (*ListUserAccessTokensRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserAccessTokensRequest) GetId() int32
- func (*ListUserAccessTokensRequest) ProtoMessage()
- func (x *ListUserAccessTokensRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserAccessTokensRequest) Reset()
- func (x *ListUserAccessTokensRequest) String() string
- type ListUserAccessTokensResponse
- func (*ListUserAccessTokensResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserAccessTokensResponse) GetAccessTokens() []*UserAccessToken
- func (*ListUserAccessTokensResponse) ProtoMessage()
- func (x *ListUserAccessTokensResponse) ProtoReflect() protoreflect.Message
- func (x *ListUserAccessTokensResponse) Reset()
- func (x *ListUserAccessTokensResponse) String() string
- type ListUsersRequest
- type ListUsersResponse
- type PlanType
- type Role
- type Shortcut
- func (*Shortcut) Descriptor() ([]byte, []int)deprecated
- func (x *Shortcut) GetCreatedTime() *timestamppb.Timestamp
- func (x *Shortcut) GetCreatorId() int32
- func (x *Shortcut) GetDescription() string
- func (x *Shortcut) GetId() int32
- func (x *Shortcut) GetLink() string
- func (x *Shortcut) GetName() string
- func (x *Shortcut) GetOgMetadata() *Shortcut_OpenGraphMetadata
- func (x *Shortcut) GetTags() []string
- func (x *Shortcut) GetTitle() string
- func (x *Shortcut) GetUpdatedTime() *timestamppb.Timestamp
- func (x *Shortcut) GetViewCount() int32
- func (x *Shortcut) GetVisibility() Visibility
- func (*Shortcut) ProtoMessage()
- func (x *Shortcut) ProtoReflect() protoreflect.Message
- func (x *Shortcut) Reset()
- func (x *Shortcut) String() string
- type ShortcutServiceClient
- type ShortcutServiceServer
- type Shortcut_OpenGraphMetadata
- func (*Shortcut_OpenGraphMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *Shortcut_OpenGraphMetadata) GetDescription() string
- func (x *Shortcut_OpenGraphMetadata) GetImage() string
- func (x *Shortcut_OpenGraphMetadata) GetTitle() string
- func (*Shortcut_OpenGraphMetadata) ProtoMessage()
- func (x *Shortcut_OpenGraphMetadata) ProtoReflect() protoreflect.Message
- func (x *Shortcut_OpenGraphMetadata) Reset()
- func (x *Shortcut_OpenGraphMetadata) String() string
- type SignInRequest
- func (*SignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInRequest) GetEmail() string
- func (x *SignInRequest) GetPassword() string
- func (*SignInRequest) ProtoMessage()
- func (x *SignInRequest) ProtoReflect() protoreflect.Message
- func (x *SignInRequest) Reset()
- func (x *SignInRequest) String() string
- type SignInWithSSORequest
- func (*SignInWithSSORequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInWithSSORequest) GetCode() string
- func (x *SignInWithSSORequest) GetIdpId() string
- func (x *SignInWithSSORequest) GetRedirectUri() string
- func (*SignInWithSSORequest) ProtoMessage()
- func (x *SignInWithSSORequest) ProtoReflect() protoreflect.Message
- func (x *SignInWithSSORequest) Reset()
- func (x *SignInWithSSORequest) String() string
- type SignOutRequest
- type SignUpRequest
- func (*SignUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpRequest) GetEmail() string
- func (x *SignUpRequest) GetNickname() string
- func (x *SignUpRequest) GetPassword() string
- func (*SignUpRequest) ProtoMessage()
- func (x *SignUpRequest) ProtoReflect() protoreflect.Message
- func (x *SignUpRequest) Reset()
- func (x *SignUpRequest) String() string
- type State
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)deprecated
- func (x *Subscription) GetCollectionsLimit() int32
- func (x *Subscription) GetExpiresTime() *timestamppb.Timestamp
- func (x *Subscription) GetFeatures() []string
- func (x *Subscription) GetPlan() PlanType
- func (x *Subscription) GetSeats() int32
- func (x *Subscription) GetShortcutsLimit() int32
- func (x *Subscription) GetStartedTime() *timestamppb.Timestamp
- func (*Subscription) ProtoMessage()
- func (x *Subscription) ProtoReflect() protoreflect.Message
- func (x *Subscription) Reset()
- func (x *Subscription) String() string
- type SubscriptionServiceClient
- type SubscriptionServiceServer
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) GetAuthStatus(context.Context, *GetAuthStatusRequest) (*User, error)
- func (UnimplementedAuthServiceServer) SignIn(context.Context, *SignInRequest) (*User, error)
- func (UnimplementedAuthServiceServer) SignInWithSSO(context.Context, *SignInWithSSORequest) (*User, error)
- func (UnimplementedAuthServiceServer) SignOut(context.Context, *SignOutRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServiceServer) SignUp(context.Context, *SignUpRequest) (*User, error)
- type UnimplementedCollectionServiceServer
- func (UnimplementedCollectionServiceServer) CreateCollection(context.Context, *CreateCollectionRequest) (*Collection, error)
- func (UnimplementedCollectionServiceServer) DeleteCollection(context.Context, *DeleteCollectionRequest) (*emptypb.Empty, error)
- func (UnimplementedCollectionServiceServer) GetCollection(context.Context, *GetCollectionRequest) (*Collection, error)
- func (UnimplementedCollectionServiceServer) GetCollectionByName(context.Context, *GetCollectionByNameRequest) (*Collection, error)
- func (UnimplementedCollectionServiceServer) ListCollections(context.Context, *ListCollectionsRequest) (*ListCollectionsResponse, error)
- func (UnimplementedCollectionServiceServer) UpdateCollection(context.Context, *UpdateCollectionRequest) (*Collection, error)
- type UnimplementedShortcutServiceServer
- func (UnimplementedShortcutServiceServer) CreateShortcut(context.Context, *CreateShortcutRequest) (*Shortcut, error)
- func (UnimplementedShortcutServiceServer) DeleteShortcut(context.Context, *DeleteShortcutRequest) (*emptypb.Empty, error)
- func (UnimplementedShortcutServiceServer) GetShortcut(context.Context, *GetShortcutRequest) (*Shortcut, error)
- func (UnimplementedShortcutServiceServer) GetShortcutAnalytics(context.Context, *GetShortcutAnalyticsRequest) (*GetShortcutAnalyticsResponse, error)
- func (UnimplementedShortcutServiceServer) GetShortcutByName(context.Context, *GetShortcutByNameRequest) (*Shortcut, error)
- func (UnimplementedShortcutServiceServer) ListShortcuts(context.Context, *ListShortcutsRequest) (*ListShortcutsResponse, error)
- func (UnimplementedShortcutServiceServer) UpdateShortcut(context.Context, *UpdateShortcutRequest) (*Shortcut, error)
- type UnimplementedSubscriptionServiceServer
- func (UnimplementedSubscriptionServiceServer) DeleteSubscription(context.Context, *DeleteSubscriptionRequest) (*Subscription, error)
- func (UnimplementedSubscriptionServiceServer) GetSubscription(context.Context, *GetSubscriptionRequest) (*Subscription, error)
- func (UnimplementedSubscriptionServiceServer) UpdateSubscription(context.Context, *UpdateSubscriptionRequest) (*Subscription, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) CreateUserAccessToken(context.Context, *CreateUserAccessTokenRequest) (*UserAccessToken, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) DeleteUserAccessToken(context.Context, *DeleteUserAccessTokenRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) ListUserAccessTokens(context.Context, *ListUserAccessTokensRequest) (*ListUserAccessTokensResponse, error)
- func (UnimplementedUserServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
- type UnimplementedUserSettingServiceServer
- type UnimplementedWorkspaceServiceServer
- func (UnimplementedWorkspaceServiceServer) GetWorkspaceProfile(context.Context, *GetWorkspaceProfileRequest) (*WorkspaceProfile, error)
- func (UnimplementedWorkspaceServiceServer) GetWorkspaceSetting(context.Context, *GetWorkspaceSettingRequest) (*WorkspaceSetting, error)
- func (UnimplementedWorkspaceServiceServer) UpdateWorkspaceSetting(context.Context, *UpdateWorkspaceSettingRequest) (*WorkspaceSetting, error)
- type UnsafeAuthServiceServer
- type UnsafeCollectionServiceServer
- type UnsafeShortcutServiceServer
- type UnsafeSubscriptionServiceServer
- type UnsafeUserServiceServer
- type UnsafeUserSettingServiceServer
- type UnsafeWorkspaceServiceServer
- type UpdateCollectionRequest
- func (*UpdateCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCollectionRequest) GetCollection() *Collection
- func (x *UpdateCollectionRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateCollectionRequest) ProtoMessage()
- func (x *UpdateCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCollectionRequest) Reset()
- func (x *UpdateCollectionRequest) String() string
- type UpdateShortcutRequest
- func (*UpdateShortcutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateShortcutRequest) GetShortcut() *Shortcut
- func (x *UpdateShortcutRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateShortcutRequest) ProtoMessage()
- func (x *UpdateShortcutRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateShortcutRequest) Reset()
- func (x *UpdateShortcutRequest) String() string
- type UpdateSubscriptionRequest
- func (*UpdateSubscriptionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSubscriptionRequest) GetLicenseKey() string
- func (*UpdateSubscriptionRequest) ProtoMessage()
- func (x *UpdateSubscriptionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSubscriptionRequest) Reset()
- func (x *UpdateSubscriptionRequest) String() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (x *UpdateUserRequest) GetUser() *User
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateUserSettingRequest
- func (*UpdateUserSettingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserSettingRequest) GetId() int32
- func (x *UpdateUserSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (x *UpdateUserSettingRequest) GetUserSetting() *UserSetting
- func (*UpdateUserSettingRequest) ProtoMessage()
- func (x *UpdateUserSettingRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserSettingRequest) Reset()
- func (x *UpdateUserSettingRequest) String() string
- type UpdateWorkspaceSettingRequest
- func (*UpdateWorkspaceSettingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateWorkspaceSettingRequest) GetSetting() *WorkspaceSetting
- func (x *UpdateWorkspaceSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateWorkspaceSettingRequest) ProtoMessage()
- func (x *UpdateWorkspaceSettingRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateWorkspaceSettingRequest) Reset()
- func (x *UpdateWorkspaceSettingRequest) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreatedTime() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetId() int32
- func (x *User) GetNickname() string
- func (x *User) GetPassword() string
- func (x *User) GetRole() Role
- func (x *User) GetState() State
- func (x *User) GetUpdatedTime() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserAccessToken
- func (*UserAccessToken) Descriptor() ([]byte, []int)deprecated
- func (x *UserAccessToken) GetAccessToken() string
- func (x *UserAccessToken) GetDescription() string
- func (x *UserAccessToken) GetExpiresAt() *timestamppb.Timestamp
- func (x *UserAccessToken) GetIssuedAt() *timestamppb.Timestamp
- func (*UserAccessToken) ProtoMessage()
- func (x *UserAccessToken) ProtoReflect() protoreflect.Message
- func (x *UserAccessToken) Reset()
- func (x *UserAccessToken) String() string
- type UserServiceClient
- type UserServiceServer
- type UserSetting
- func (*UserSetting) Descriptor() ([]byte, []int)deprecated
- func (x *UserSetting) GetAccessTokens() *UserSetting_AccessTokensSetting
- func (x *UserSetting) GetGeneral() *UserSetting_GeneralSetting
- func (x *UserSetting) GetUserId() int32
- func (*UserSetting) ProtoMessage()
- func (x *UserSetting) ProtoReflect() protoreflect.Message
- func (x *UserSetting) Reset()
- func (x *UserSetting) String() string
- type UserSettingServiceClient
- type UserSettingServiceServer
- type UserSetting_AccessTokensSetting
- func (*UserSetting_AccessTokensSetting) Descriptor() ([]byte, []int)deprecated
- func (x *UserSetting_AccessTokensSetting) GetAccessTokens() []*UserSetting_AccessTokensSetting_AccessToken
- func (*UserSetting_AccessTokensSetting) ProtoMessage()
- func (x *UserSetting_AccessTokensSetting) ProtoReflect() protoreflect.Message
- func (x *UserSetting_AccessTokensSetting) Reset()
- func (x *UserSetting_AccessTokensSetting) String() string
- type UserSetting_AccessTokensSetting_AccessToken
- func (*UserSetting_AccessTokensSetting_AccessToken) Descriptor() ([]byte, []int)deprecated
- func (x *UserSetting_AccessTokensSetting_AccessToken) GetAccessToken() string
- func (x *UserSetting_AccessTokensSetting_AccessToken) GetDescription() string
- func (*UserSetting_AccessTokensSetting_AccessToken) ProtoMessage()
- func (x *UserSetting_AccessTokensSetting_AccessToken) ProtoReflect() protoreflect.Message
- func (x *UserSetting_AccessTokensSetting_AccessToken) Reset()
- func (x *UserSetting_AccessTokensSetting_AccessToken) String() string
- type UserSetting_GeneralSetting
- func (*UserSetting_GeneralSetting) Descriptor() ([]byte, []int)deprecated
- func (x *UserSetting_GeneralSetting) GetColorTheme() string
- func (x *UserSetting_GeneralSetting) GetLocale() string
- func (*UserSetting_GeneralSetting) ProtoMessage()
- func (x *UserSetting_GeneralSetting) ProtoReflect() protoreflect.Message
- func (x *UserSetting_GeneralSetting) Reset()
- func (x *UserSetting_GeneralSetting) String() string
- type Visibility
- type WorkspaceProfile
- func (*WorkspaceProfile) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceProfile) GetBranding() []byte
- func (x *WorkspaceProfile) GetCustomStyle() string
- func (x *WorkspaceProfile) GetMode() string
- func (x *WorkspaceProfile) GetOwner() string
- func (x *WorkspaceProfile) GetSubscription() *Subscription
- func (x *WorkspaceProfile) GetVersion() string
- func (*WorkspaceProfile) ProtoMessage()
- func (x *WorkspaceProfile) ProtoReflect() protoreflect.Message
- func (x *WorkspaceProfile) Reset()
- func (x *WorkspaceProfile) String() string
- type WorkspaceServiceClient
- type WorkspaceServiceServer
- type WorkspaceSetting
- func (*WorkspaceSetting) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceSetting) GetBranding() []byte
- func (x *WorkspaceSetting) GetCustomStyle() string
- func (x *WorkspaceSetting) GetDefaultVisibility() Visibility
- func (x *WorkspaceSetting) GetDisallowPasswordAuth() bool
- func (x *WorkspaceSetting) GetDisallowUserRegistration() bool
- func (x *WorkspaceSetting) GetIdentityProviders() []*IdentityProvider
- func (x *WorkspaceSetting) GetInstanceUrl() string
- func (*WorkspaceSetting) ProtoMessage()
- func (x *WorkspaceSetting) ProtoReflect() protoreflect.Message
- func (x *WorkspaceSetting) Reset()
- func (x *WorkspaceSetting) String() string
Constants ¶
const ( AuthService_GetAuthStatus_FullMethodName = "/slash.api.v1.AuthService/GetAuthStatus" AuthService_SignIn_FullMethodName = "/slash.api.v1.AuthService/SignIn" AuthService_SignInWithSSO_FullMethodName = "/slash.api.v1.AuthService/SignInWithSSO" AuthService_SignUp_FullMethodName = "/slash.api.v1.AuthService/SignUp" AuthService_SignOut_FullMethodName = "/slash.api.v1.AuthService/SignOut" )
const ( CollectionService_ListCollections_FullMethodName = "/slash.api.v1.CollectionService/ListCollections" CollectionService_GetCollection_FullMethodName = "/slash.api.v1.CollectionService/GetCollection" CollectionService_GetCollectionByName_FullMethodName = "/slash.api.v1.CollectionService/GetCollectionByName" CollectionService_CreateCollection_FullMethodName = "/slash.api.v1.CollectionService/CreateCollection" CollectionService_UpdateCollection_FullMethodName = "/slash.api.v1.CollectionService/UpdateCollection" CollectionService_DeleteCollection_FullMethodName = "/slash.api.v1.CollectionService/DeleteCollection" )
const ( ShortcutService_ListShortcuts_FullMethodName = "/slash.api.v1.ShortcutService/ListShortcuts" ShortcutService_GetShortcut_FullMethodName = "/slash.api.v1.ShortcutService/GetShortcut" ShortcutService_GetShortcutByName_FullMethodName = "/slash.api.v1.ShortcutService/GetShortcutByName" ShortcutService_CreateShortcut_FullMethodName = "/slash.api.v1.ShortcutService/CreateShortcut" ShortcutService_UpdateShortcut_FullMethodName = "/slash.api.v1.ShortcutService/UpdateShortcut" ShortcutService_DeleteShortcut_FullMethodName = "/slash.api.v1.ShortcutService/DeleteShortcut" ShortcutService_GetShortcutAnalytics_FullMethodName = "/slash.api.v1.ShortcutService/GetShortcutAnalytics" )
const ( SubscriptionService_GetSubscription_FullMethodName = "/slash.api.v1.SubscriptionService/GetSubscription" SubscriptionService_UpdateSubscription_FullMethodName = "/slash.api.v1.SubscriptionService/UpdateSubscription" SubscriptionService_DeleteSubscription_FullMethodName = "/slash.api.v1.SubscriptionService/DeleteSubscription" )
const ( UserService_ListUsers_FullMethodName = "/slash.api.v1.UserService/ListUsers" UserService_GetUser_FullMethodName = "/slash.api.v1.UserService/GetUser" UserService_CreateUser_FullMethodName = "/slash.api.v1.UserService/CreateUser" UserService_UpdateUser_FullMethodName = "/slash.api.v1.UserService/UpdateUser" UserService_DeleteUser_FullMethodName = "/slash.api.v1.UserService/DeleteUser" UserService_ListUserAccessTokens_FullMethodName = "/slash.api.v1.UserService/ListUserAccessTokens" UserService_CreateUserAccessToken_FullMethodName = "/slash.api.v1.UserService/CreateUserAccessToken" UserService_DeleteUserAccessToken_FullMethodName = "/slash.api.v1.UserService/DeleteUserAccessToken" )
const ( UserSettingService_GetUserSetting_FullMethodName = "/slash.api.v1.UserSettingService/GetUserSetting" UserSettingService_UpdateUserSetting_FullMethodName = "/slash.api.v1.UserSettingService/UpdateUserSetting" )
const ( WorkspaceService_GetWorkspaceProfile_FullMethodName = "/slash.api.v1.WorkspaceService/GetWorkspaceProfile" WorkspaceService_GetWorkspaceSetting_FullMethodName = "/slash.api.v1.WorkspaceService/GetWorkspaceSetting" WorkspaceService_UpdateWorkspaceSetting_FullMethodName = "/slash.api.v1.WorkspaceService/UpdateWorkspaceSetting" )
Variables ¶
var ( State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "ACTIVE", 2: "INACTIVE", } State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "ACTIVE": 1, "INACTIVE": 2, } )
Enum value maps for State.
var ( Visibility_name = map[int32]string{ 0: "VISIBILITY_UNSPECIFIED", 1: "WORKSPACE", 2: "PUBLIC", } Visibility_value = map[string]int32{ "VISIBILITY_UNSPECIFIED": 0, "WORKSPACE": 1, "PUBLIC": 2, } )
Enum value maps for Visibility.
var ( PlanType_name = map[int32]string{ 0: "PLAN_TYPE_UNSPECIFIED", 1: "FREE", 2: "PRO", 3: "ENTERPRISE", } PlanType_value = map[string]int32{ "PLAN_TYPE_UNSPECIFIED": 0, "FREE": 1, "PRO": 2, "ENTERPRISE": 3, } )
Enum value maps for PlanType.
var ( Role_name = map[int32]string{ 0: "ROLE_UNSPECIFIED", 1: "ADMIN", 2: "USER", } Role_value = map[string]int32{ "ROLE_UNSPECIFIED": 0, "ADMIN": 1, "USER": 2, } )
Enum value maps for Role.
var ( IdentityProvider_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "OAUTH2", } IdentityProvider_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "OAUTH2": 1, } )
Enum value maps for IdentityProvider_Type.
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "slash.api.v1.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAuthStatus", Handler: _AuthService_GetAuthStatus_Handler, }, { MethodName: "SignIn", Handler: _AuthService_SignIn_Handler, }, { MethodName: "SignInWithSSO", Handler: _AuthService_SignInWithSSO_Handler, }, { MethodName: "SignUp", Handler: _AuthService_SignUp_Handler, }, { MethodName: "SignOut", Handler: _AuthService_SignOut_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/auth_service.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CollectionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "slash.api.v1.CollectionService", HandlerType: (*CollectionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListCollections", Handler: _CollectionService_ListCollections_Handler, }, { MethodName: "GetCollection", Handler: _CollectionService_GetCollection_Handler, }, { MethodName: "GetCollectionByName", Handler: _CollectionService_GetCollectionByName_Handler, }, { MethodName: "CreateCollection", Handler: _CollectionService_CreateCollection_Handler, }, { MethodName: "UpdateCollection", Handler: _CollectionService_UpdateCollection_Handler, }, { MethodName: "DeleteCollection", Handler: _CollectionService_DeleteCollection_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/collection_service.proto", }
CollectionService_ServiceDesc is the grpc.ServiceDesc for CollectionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_v1_auth_service_proto protoreflect.FileDescriptor
var File_api_v1_collection_service_proto protoreflect.FileDescriptor
var File_api_v1_common_proto protoreflect.FileDescriptor
var File_api_v1_shortcut_service_proto protoreflect.FileDescriptor
var File_api_v1_subscription_service_proto protoreflect.FileDescriptor
var File_api_v1_user_service_proto protoreflect.FileDescriptor
var File_api_v1_user_setting_service_proto protoreflect.FileDescriptor
var File_api_v1_workspace_service_proto protoreflect.FileDescriptor
var ShortcutService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "slash.api.v1.ShortcutService", HandlerType: (*ShortcutServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListShortcuts", Handler: _ShortcutService_ListShortcuts_Handler, }, { MethodName: "GetShortcut", Handler: _ShortcutService_GetShortcut_Handler, }, { MethodName: "GetShortcutByName", Handler: _ShortcutService_GetShortcutByName_Handler, }, { MethodName: "CreateShortcut", Handler: _ShortcutService_CreateShortcut_Handler, }, { MethodName: "UpdateShortcut", Handler: _ShortcutService_UpdateShortcut_Handler, }, { MethodName: "DeleteShortcut", Handler: _ShortcutService_DeleteShortcut_Handler, }, { MethodName: "GetShortcutAnalytics", Handler: _ShortcutService_GetShortcutAnalytics_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/shortcut_service.proto", }
ShortcutService_ServiceDesc is the grpc.ServiceDesc for ShortcutService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SubscriptionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "slash.api.v1.SubscriptionService", HandlerType: (*SubscriptionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSubscription", Handler: _SubscriptionService_GetSubscription_Handler, }, { MethodName: "UpdateSubscription", Handler: _SubscriptionService_UpdateSubscription_Handler, }, { MethodName: "DeleteSubscription", Handler: _SubscriptionService_DeleteSubscription_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/subscription_service.proto", }
SubscriptionService_ServiceDesc is the grpc.ServiceDesc for SubscriptionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "slash.api.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListUsers", Handler: _UserService_ListUsers_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "ListUserAccessTokens", Handler: _UserService_ListUserAccessTokens_Handler, }, { MethodName: "CreateUserAccessToken", Handler: _UserService_CreateUserAccessToken_Handler, }, { MethodName: "DeleteUserAccessToken", Handler: _UserService_DeleteUserAccessToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/user_service.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserSettingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "slash.api.v1.UserSettingService", HandlerType: (*UserSettingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserSetting", Handler: _UserSettingService_GetUserSetting_Handler, }, { MethodName: "UpdateUserSetting", Handler: _UserSettingService_UpdateUserSetting_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/user_setting_service.proto", }
UserSettingService_ServiceDesc is the grpc.ServiceDesc for UserSettingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var WorkspaceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "slash.api.v1.WorkspaceService", HandlerType: (*WorkspaceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetWorkspaceProfile", Handler: _WorkspaceService_GetWorkspaceProfile_Handler, }, { MethodName: "GetWorkspaceSetting", Handler: _WorkspaceService_GetWorkspaceSetting_Handler, }, { MethodName: "UpdateWorkspaceSetting", Handler: _WorkspaceService_UpdateWorkspaceSetting_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/workspace_service.proto", }
WorkspaceService_ServiceDesc is the grpc.ServiceDesc for WorkspaceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServiceHandler ¶
func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthServiceHandlerClient ¶
func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterAuthServiceHandlerFromEndpoint ¶
func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthServiceHandlerServer ¶
func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterCollectionServiceHandler ¶
func RegisterCollectionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCollectionServiceHandler registers the http handlers for service CollectionService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCollectionServiceHandlerClient ¶
func RegisterCollectionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CollectionServiceClient) error
RegisterCollectionServiceHandlerClient registers the http handlers for service CollectionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CollectionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CollectionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CollectionServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterCollectionServiceHandlerFromEndpoint ¶
func RegisterCollectionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCollectionServiceHandlerFromEndpoint is same as RegisterCollectionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCollectionServiceHandlerServer ¶
func RegisterCollectionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CollectionServiceServer) error
RegisterCollectionServiceHandlerServer registers the http handlers for service CollectionService to "mux". UnaryRPC :call CollectionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCollectionServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterCollectionServiceServer ¶
func RegisterCollectionServiceServer(s grpc.ServiceRegistrar, srv CollectionServiceServer)
func RegisterShortcutServiceHandler ¶
func RegisterShortcutServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterShortcutServiceHandler registers the http handlers for service ShortcutService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterShortcutServiceHandlerClient ¶
func RegisterShortcutServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ShortcutServiceClient) error
RegisterShortcutServiceHandlerClient registers the http handlers for service ShortcutService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ShortcutServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ShortcutServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ShortcutServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterShortcutServiceHandlerFromEndpoint ¶
func RegisterShortcutServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterShortcutServiceHandlerFromEndpoint is same as RegisterShortcutServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterShortcutServiceHandlerServer ¶
func RegisterShortcutServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ShortcutServiceServer) error
RegisterShortcutServiceHandlerServer registers the http handlers for service ShortcutService to "mux". UnaryRPC :call ShortcutServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterShortcutServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterShortcutServiceServer ¶
func RegisterShortcutServiceServer(s grpc.ServiceRegistrar, srv ShortcutServiceServer)
func RegisterSubscriptionServiceHandler ¶
func RegisterSubscriptionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSubscriptionServiceHandler registers the http handlers for service SubscriptionService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSubscriptionServiceHandlerClient ¶
func RegisterSubscriptionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SubscriptionServiceClient) error
RegisterSubscriptionServiceHandlerClient registers the http handlers for service SubscriptionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SubscriptionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SubscriptionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SubscriptionServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterSubscriptionServiceHandlerFromEndpoint ¶
func RegisterSubscriptionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSubscriptionServiceHandlerFromEndpoint is same as RegisterSubscriptionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSubscriptionServiceHandlerServer ¶
func RegisterSubscriptionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SubscriptionServiceServer) error
RegisterSubscriptionServiceHandlerServer registers the http handlers for service SubscriptionService to "mux". UnaryRPC :call SubscriptionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSubscriptionServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterSubscriptionServiceServer ¶
func RegisterSubscriptionServiceServer(s grpc.ServiceRegistrar, srv SubscriptionServiceServer)
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserServiceHandlerClient ¶
func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterUserServiceHandlerFromEndpoint ¶
func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserServiceHandlerServer ¶
func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
func RegisterUserSettingServiceHandler ¶
func RegisterUserSettingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserSettingServiceHandler registers the http handlers for service UserSettingService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserSettingServiceHandlerClient ¶
func RegisterUserSettingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserSettingServiceClient) error
RegisterUserSettingServiceHandlerClient registers the http handlers for service UserSettingService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserSettingServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserSettingServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserSettingServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterUserSettingServiceHandlerFromEndpoint ¶
func RegisterUserSettingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserSettingServiceHandlerFromEndpoint is same as RegisterUserSettingServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserSettingServiceHandlerServer ¶
func RegisterUserSettingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserSettingServiceServer) error
RegisterUserSettingServiceHandlerServer registers the http handlers for service UserSettingService to "mux". UnaryRPC :call UserSettingServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserSettingServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterUserSettingServiceServer ¶
func RegisterUserSettingServiceServer(s grpc.ServiceRegistrar, srv UserSettingServiceServer)
func RegisterWorkspaceServiceHandler ¶
func RegisterWorkspaceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterWorkspaceServiceHandler registers the http handlers for service WorkspaceService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWorkspaceServiceHandlerClient ¶
func RegisterWorkspaceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WorkspaceServiceClient) error
RegisterWorkspaceServiceHandlerClient registers the http handlers for service WorkspaceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WorkspaceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WorkspaceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WorkspaceServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterWorkspaceServiceHandlerFromEndpoint ¶
func RegisterWorkspaceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWorkspaceServiceHandlerFromEndpoint is same as RegisterWorkspaceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWorkspaceServiceHandlerServer ¶
func RegisterWorkspaceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WorkspaceServiceServer) error
RegisterWorkspaceServiceHandlerServer registers the http handlers for service WorkspaceService to "mux". UnaryRPC :call WorkspaceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWorkspaceServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterWorkspaceServiceServer ¶
func RegisterWorkspaceServiceServer(s grpc.ServiceRegistrar, srv WorkspaceServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { // GetAuthStatus returns the current auth status of the user. GetAuthStatus(ctx context.Context, in *GetAuthStatusRequest, opts ...grpc.CallOption) (*User, error) // SignIn signs in the user with the given username and password. SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*User, error) // SignInWithSSO signs in the user with the given SSO code. SignInWithSSO(ctx context.Context, in *SignInWithSSORequest, opts ...grpc.CallOption) (*User, error) // SignUp signs up the user with the given username and password. SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*User, error) // SignOut signs out the user. SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { // GetAuthStatus returns the current auth status of the user. GetAuthStatus(context.Context, *GetAuthStatusRequest) (*User, error) // SignIn signs in the user with the given username and password. SignIn(context.Context, *SignInRequest) (*User, error) // SignInWithSSO signs in the user with the given SSO code. SignInWithSSO(context.Context, *SignInWithSSORequest) (*User, error) // SignUp signs up the user with the given username and password. SignUp(context.Context, *SignUpRequest) (*User, error) // SignOut signs out the user. SignOut(context.Context, *SignOutRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility.
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"` CreatedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,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.api.v1.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) GetCreatedTime ¶
func (x *Collection) GetCreatedTime() *timestamppb.Timestamp
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) GetUpdatedTime ¶
func (x *Collection) GetUpdatedTime() *timestamppb.Timestamp
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 CollectionServiceClient ¶
type CollectionServiceClient interface { // ListCollections returns a list of collections. ListCollections(ctx context.Context, in *ListCollectionsRequest, opts ...grpc.CallOption) (*ListCollectionsResponse, error) // GetCollection returns a collection by id. GetCollection(ctx context.Context, in *GetCollectionRequest, opts ...grpc.CallOption) (*Collection, error) // GetCollectionByName returns a collection by name. GetCollectionByName(ctx context.Context, in *GetCollectionByNameRequest, opts ...grpc.CallOption) (*Collection, error) // CreateCollection creates a collection. CreateCollection(ctx context.Context, in *CreateCollectionRequest, opts ...grpc.CallOption) (*Collection, error) // UpdateCollection updates a collection. UpdateCollection(ctx context.Context, in *UpdateCollectionRequest, opts ...grpc.CallOption) (*Collection, error) // DeleteCollection deletes a collection by id. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
CollectionServiceClient is the client API for CollectionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCollectionServiceClient ¶
func NewCollectionServiceClient(cc grpc.ClientConnInterface) CollectionServiceClient
type CollectionServiceServer ¶
type CollectionServiceServer interface { // ListCollections returns a list of collections. ListCollections(context.Context, *ListCollectionsRequest) (*ListCollectionsResponse, error) // GetCollection returns a collection by id. GetCollection(context.Context, *GetCollectionRequest) (*Collection, error) // GetCollectionByName returns a collection by name. GetCollectionByName(context.Context, *GetCollectionByNameRequest) (*Collection, error) // CreateCollection creates a collection. CreateCollection(context.Context, *CreateCollectionRequest) (*Collection, error) // UpdateCollection updates a collection. UpdateCollection(context.Context, *UpdateCollectionRequest) (*Collection, error) // DeleteCollection deletes a collection by id. DeleteCollection(context.Context, *DeleteCollectionRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
CollectionServiceServer is the server API for CollectionService service. All implementations must embed UnimplementedCollectionServiceServer for forward compatibility.
type CreateCollectionRequest ¶
type CreateCollectionRequest struct { Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
func (*CreateCollectionRequest) Descriptor
deprecated
func (*CreateCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCollectionRequest.ProtoReflect.Descriptor instead.
func (*CreateCollectionRequest) GetCollection ¶
func (x *CreateCollectionRequest) GetCollection() *Collection
func (*CreateCollectionRequest) ProtoMessage ¶
func (*CreateCollectionRequest) ProtoMessage()
func (*CreateCollectionRequest) ProtoReflect ¶
func (x *CreateCollectionRequest) ProtoReflect() protoreflect.Message
func (*CreateCollectionRequest) Reset ¶
func (x *CreateCollectionRequest) Reset()
func (*CreateCollectionRequest) String ¶
func (x *CreateCollectionRequest) String() string
type CreateShortcutRequest ¶
type CreateShortcutRequest struct { Shortcut *Shortcut `protobuf:"bytes,1,opt,name=shortcut,proto3" json:"shortcut,omitempty"` // contains filtered or unexported fields }
func (*CreateShortcutRequest) Descriptor
deprecated
func (*CreateShortcutRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateShortcutRequest.ProtoReflect.Descriptor instead.
func (*CreateShortcutRequest) GetShortcut ¶
func (x *CreateShortcutRequest) GetShortcut() *Shortcut
func (*CreateShortcutRequest) ProtoMessage ¶
func (*CreateShortcutRequest) ProtoMessage()
func (*CreateShortcutRequest) ProtoReflect ¶
func (x *CreateShortcutRequest) ProtoReflect() protoreflect.Message
func (*CreateShortcutRequest) Reset ¶
func (x *CreateShortcutRequest) Reset()
func (*CreateShortcutRequest) String ¶
func (x *CreateShortcutRequest) String() string
type CreateUserAccessTokenRequest ¶
type CreateUserAccessTokenRequest struct { // id is the user id. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // description is the description of the access token. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // expires_at is the expiration time of the access token. // If expires_at is not set, the access token will never expire. ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"` // contains filtered or unexported fields }
func (*CreateUserAccessTokenRequest) Descriptor
deprecated
func (*CreateUserAccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserAccessTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateUserAccessTokenRequest) GetDescription ¶
func (x *CreateUserAccessTokenRequest) GetDescription() string
func (*CreateUserAccessTokenRequest) GetExpiresAt ¶
func (x *CreateUserAccessTokenRequest) GetExpiresAt() *timestamppb.Timestamp
func (*CreateUserAccessTokenRequest) GetId ¶
func (x *CreateUserAccessTokenRequest) GetId() int32
func (*CreateUserAccessTokenRequest) ProtoMessage ¶
func (*CreateUserAccessTokenRequest) ProtoMessage()
func (*CreateUserAccessTokenRequest) ProtoReflect ¶
func (x *CreateUserAccessTokenRequest) ProtoReflect() protoreflect.Message
func (*CreateUserAccessTokenRequest) Reset ¶
func (x *CreateUserAccessTokenRequest) Reset()
func (*CreateUserAccessTokenRequest) String ¶
func (x *CreateUserAccessTokenRequest) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetUser ¶
func (x *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type DeleteCollectionRequest ¶
type DeleteCollectionRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCollectionRequest) Descriptor
deprecated
func (*DeleteCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCollectionRequest.ProtoReflect.Descriptor instead.
func (*DeleteCollectionRequest) GetId ¶
func (x *DeleteCollectionRequest) GetId() int32
func (*DeleteCollectionRequest) ProtoMessage ¶
func (*DeleteCollectionRequest) ProtoMessage()
func (*DeleteCollectionRequest) ProtoReflect ¶
func (x *DeleteCollectionRequest) ProtoReflect() protoreflect.Message
func (*DeleteCollectionRequest) Reset ¶
func (x *DeleteCollectionRequest) Reset()
func (*DeleteCollectionRequest) String ¶
func (x *DeleteCollectionRequest) String() string
type DeleteShortcutRequest ¶
type DeleteShortcutRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteShortcutRequest) Descriptor
deprecated
func (*DeleteShortcutRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteShortcutRequest.ProtoReflect.Descriptor instead.
func (*DeleteShortcutRequest) GetId ¶
func (x *DeleteShortcutRequest) GetId() int32
func (*DeleteShortcutRequest) ProtoMessage ¶
func (*DeleteShortcutRequest) ProtoMessage()
func (*DeleteShortcutRequest) ProtoReflect ¶
func (x *DeleteShortcutRequest) ProtoReflect() protoreflect.Message
func (*DeleteShortcutRequest) Reset ¶
func (x *DeleteShortcutRequest) Reset()
func (*DeleteShortcutRequest) String ¶
func (x *DeleteShortcutRequest) String() string
type DeleteSubscriptionRequest ¶
type DeleteSubscriptionRequest struct {
// contains filtered or unexported fields
}
func (*DeleteSubscriptionRequest) Descriptor
deprecated
func (*DeleteSubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*DeleteSubscriptionRequest) ProtoMessage ¶
func (*DeleteSubscriptionRequest) ProtoMessage()
func (*DeleteSubscriptionRequest) ProtoReflect ¶
func (x *DeleteSubscriptionRequest) ProtoReflect() protoreflect.Message
func (*DeleteSubscriptionRequest) Reset ¶
func (x *DeleteSubscriptionRequest) Reset()
func (*DeleteSubscriptionRequest) String ¶
func (x *DeleteSubscriptionRequest) String() string
type DeleteUserAccessTokenRequest ¶
type DeleteUserAccessTokenRequest struct { // id is the user id. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // access_token is the access token to delete. AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserAccessTokenRequest) Descriptor
deprecated
func (*DeleteUserAccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserAccessTokenRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserAccessTokenRequest) GetAccessToken ¶
func (x *DeleteUserAccessTokenRequest) GetAccessToken() string
func (*DeleteUserAccessTokenRequest) GetId ¶
func (x *DeleteUserAccessTokenRequest) GetId() int32
func (*DeleteUserAccessTokenRequest) ProtoMessage ¶
func (*DeleteUserAccessTokenRequest) ProtoMessage()
func (*DeleteUserAccessTokenRequest) ProtoReflect ¶
func (x *DeleteUserAccessTokenRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserAccessTokenRequest) Reset ¶
func (x *DeleteUserAccessTokenRequest) Reset()
func (*DeleteUserAccessTokenRequest) String ¶
func (x *DeleteUserAccessTokenRequest) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetId ¶
func (x *DeleteUserRequest) GetId() int32
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type GetAuthStatusRequest ¶
type GetAuthStatusRequest struct {
// contains filtered or unexported fields
}
func (*GetAuthStatusRequest) Descriptor
deprecated
func (*GetAuthStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthStatusRequest.ProtoReflect.Descriptor instead.
func (*GetAuthStatusRequest) ProtoMessage ¶
func (*GetAuthStatusRequest) ProtoMessage()
func (*GetAuthStatusRequest) ProtoReflect ¶
func (x *GetAuthStatusRequest) ProtoReflect() protoreflect.Message
func (*GetAuthStatusRequest) Reset ¶
func (x *GetAuthStatusRequest) Reset()
func (*GetAuthStatusRequest) String ¶
func (x *GetAuthStatusRequest) String() string
type GetCollectionByNameRequest ¶
type GetCollectionByNameRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetCollectionByNameRequest) Descriptor
deprecated
func (*GetCollectionByNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCollectionByNameRequest.ProtoReflect.Descriptor instead.
func (*GetCollectionByNameRequest) GetName ¶
func (x *GetCollectionByNameRequest) GetName() string
func (*GetCollectionByNameRequest) ProtoMessage ¶
func (*GetCollectionByNameRequest) ProtoMessage()
func (*GetCollectionByNameRequest) ProtoReflect ¶
func (x *GetCollectionByNameRequest) ProtoReflect() protoreflect.Message
func (*GetCollectionByNameRequest) Reset ¶
func (x *GetCollectionByNameRequest) Reset()
func (*GetCollectionByNameRequest) String ¶
func (x *GetCollectionByNameRequest) String() string
type GetCollectionRequest ¶
type GetCollectionRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCollectionRequest) Descriptor
deprecated
func (*GetCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCollectionRequest.ProtoReflect.Descriptor instead.
func (*GetCollectionRequest) GetId ¶
func (x *GetCollectionRequest) GetId() int32
func (*GetCollectionRequest) ProtoMessage ¶
func (*GetCollectionRequest) ProtoMessage()
func (*GetCollectionRequest) ProtoReflect ¶
func (x *GetCollectionRequest) ProtoReflect() protoreflect.Message
func (*GetCollectionRequest) Reset ¶
func (x *GetCollectionRequest) Reset()
func (*GetCollectionRequest) String ¶
func (x *GetCollectionRequest) String() string
type GetShortcutAnalyticsRequest ¶
type GetShortcutAnalyticsRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetShortcutAnalyticsRequest) Descriptor
deprecated
func (*GetShortcutAnalyticsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetShortcutAnalyticsRequest.ProtoReflect.Descriptor instead.
func (*GetShortcutAnalyticsRequest) GetId ¶
func (x *GetShortcutAnalyticsRequest) GetId() int32
func (*GetShortcutAnalyticsRequest) ProtoMessage ¶
func (*GetShortcutAnalyticsRequest) ProtoMessage()
func (*GetShortcutAnalyticsRequest) ProtoReflect ¶
func (x *GetShortcutAnalyticsRequest) ProtoReflect() protoreflect.Message
func (*GetShortcutAnalyticsRequest) Reset ¶
func (x *GetShortcutAnalyticsRequest) Reset()
func (*GetShortcutAnalyticsRequest) String ¶
func (x *GetShortcutAnalyticsRequest) String() string
type GetShortcutAnalyticsResponse ¶
type GetShortcutAnalyticsResponse struct { References []*GetShortcutAnalyticsResponse_AnalyticsItem `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"` Devices []*GetShortcutAnalyticsResponse_AnalyticsItem `protobuf:"bytes,2,rep,name=devices,proto3" json:"devices,omitempty"` Browsers []*GetShortcutAnalyticsResponse_AnalyticsItem `protobuf:"bytes,3,rep,name=browsers,proto3" json:"browsers,omitempty"` // contains filtered or unexported fields }
func (*GetShortcutAnalyticsResponse) Descriptor
deprecated
func (*GetShortcutAnalyticsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetShortcutAnalyticsResponse.ProtoReflect.Descriptor instead.
func (*GetShortcutAnalyticsResponse) GetBrowsers ¶
func (x *GetShortcutAnalyticsResponse) GetBrowsers() []*GetShortcutAnalyticsResponse_AnalyticsItem
func (*GetShortcutAnalyticsResponse) GetDevices ¶
func (x *GetShortcutAnalyticsResponse) GetDevices() []*GetShortcutAnalyticsResponse_AnalyticsItem
func (*GetShortcutAnalyticsResponse) GetReferences ¶
func (x *GetShortcutAnalyticsResponse) GetReferences() []*GetShortcutAnalyticsResponse_AnalyticsItem
func (*GetShortcutAnalyticsResponse) ProtoMessage ¶
func (*GetShortcutAnalyticsResponse) ProtoMessage()
func (*GetShortcutAnalyticsResponse) ProtoReflect ¶
func (x *GetShortcutAnalyticsResponse) ProtoReflect() protoreflect.Message
func (*GetShortcutAnalyticsResponse) Reset ¶
func (x *GetShortcutAnalyticsResponse) Reset()
func (*GetShortcutAnalyticsResponse) String ¶
func (x *GetShortcutAnalyticsResponse) String() string
type GetShortcutAnalyticsResponse_AnalyticsItem ¶
type GetShortcutAnalyticsResponse_AnalyticsItem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*GetShortcutAnalyticsResponse_AnalyticsItem) Descriptor
deprecated
func (*GetShortcutAnalyticsResponse_AnalyticsItem) Descriptor() ([]byte, []int)
Deprecated: Use GetShortcutAnalyticsResponse_AnalyticsItem.ProtoReflect.Descriptor instead.
func (*GetShortcutAnalyticsResponse_AnalyticsItem) GetCount ¶
func (x *GetShortcutAnalyticsResponse_AnalyticsItem) GetCount() int32
func (*GetShortcutAnalyticsResponse_AnalyticsItem) GetName ¶
func (x *GetShortcutAnalyticsResponse_AnalyticsItem) GetName() string
func (*GetShortcutAnalyticsResponse_AnalyticsItem) ProtoMessage ¶
func (*GetShortcutAnalyticsResponse_AnalyticsItem) ProtoMessage()
func (*GetShortcutAnalyticsResponse_AnalyticsItem) ProtoReflect ¶
func (x *GetShortcutAnalyticsResponse_AnalyticsItem) ProtoReflect() protoreflect.Message
func (*GetShortcutAnalyticsResponse_AnalyticsItem) Reset ¶
func (x *GetShortcutAnalyticsResponse_AnalyticsItem) Reset()
func (*GetShortcutAnalyticsResponse_AnalyticsItem) String ¶
func (x *GetShortcutAnalyticsResponse_AnalyticsItem) String() string
type GetShortcutByNameRequest ¶
type GetShortcutByNameRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetShortcutByNameRequest) Descriptor
deprecated
func (*GetShortcutByNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetShortcutByNameRequest.ProtoReflect.Descriptor instead.
func (*GetShortcutByNameRequest) GetName ¶
func (x *GetShortcutByNameRequest) GetName() string
func (*GetShortcutByNameRequest) ProtoMessage ¶
func (*GetShortcutByNameRequest) ProtoMessage()
func (*GetShortcutByNameRequest) ProtoReflect ¶
func (x *GetShortcutByNameRequest) ProtoReflect() protoreflect.Message
func (*GetShortcutByNameRequest) Reset ¶
func (x *GetShortcutByNameRequest) Reset()
func (*GetShortcutByNameRequest) String ¶
func (x *GetShortcutByNameRequest) String() string
type GetShortcutRequest ¶
type GetShortcutRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetShortcutRequest) Descriptor
deprecated
func (*GetShortcutRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetShortcutRequest.ProtoReflect.Descriptor instead.
func (*GetShortcutRequest) GetId ¶
func (x *GetShortcutRequest) GetId() int32
func (*GetShortcutRequest) ProtoMessage ¶
func (*GetShortcutRequest) ProtoMessage()
func (*GetShortcutRequest) ProtoReflect ¶
func (x *GetShortcutRequest) ProtoReflect() protoreflect.Message
func (*GetShortcutRequest) Reset ¶
func (x *GetShortcutRequest) Reset()
func (*GetShortcutRequest) String ¶
func (x *GetShortcutRequest) String() string
type GetSubscriptionRequest ¶
type GetSubscriptionRequest struct {
// contains filtered or unexported fields
}
func (*GetSubscriptionRequest) Descriptor
deprecated
func (*GetSubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*GetSubscriptionRequest) ProtoMessage ¶
func (*GetSubscriptionRequest) ProtoMessage()
func (*GetSubscriptionRequest) ProtoReflect ¶
func (x *GetSubscriptionRequest) ProtoReflect() protoreflect.Message
func (*GetSubscriptionRequest) Reset ¶
func (x *GetSubscriptionRequest) Reset()
func (*GetSubscriptionRequest) String ¶
func (x *GetSubscriptionRequest) String() string
type GetUserRequest ¶
type GetUserRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() int32
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserSettingRequest ¶
type GetUserSettingRequest struct { // id is the user id. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserSettingRequest) Descriptor
deprecated
func (*GetUserSettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserSettingRequest.ProtoReflect.Descriptor instead.
func (*GetUserSettingRequest) GetId ¶
func (x *GetUserSettingRequest) GetId() int32
func (*GetUserSettingRequest) ProtoMessage ¶
func (*GetUserSettingRequest) ProtoMessage()
func (*GetUserSettingRequest) ProtoReflect ¶
func (x *GetUserSettingRequest) ProtoReflect() protoreflect.Message
func (*GetUserSettingRequest) Reset ¶
func (x *GetUserSettingRequest) Reset()
func (*GetUserSettingRequest) String ¶
func (x *GetUserSettingRequest) String() string
type GetWorkspaceProfileRequest ¶
type GetWorkspaceProfileRequest struct {
// contains filtered or unexported fields
}
func (*GetWorkspaceProfileRequest) Descriptor
deprecated
func (*GetWorkspaceProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWorkspaceProfileRequest.ProtoReflect.Descriptor instead.
func (*GetWorkspaceProfileRequest) ProtoMessage ¶
func (*GetWorkspaceProfileRequest) ProtoMessage()
func (*GetWorkspaceProfileRequest) ProtoReflect ¶
func (x *GetWorkspaceProfileRequest) ProtoReflect() protoreflect.Message
func (*GetWorkspaceProfileRequest) Reset ¶
func (x *GetWorkspaceProfileRequest) Reset()
func (*GetWorkspaceProfileRequest) String ¶
func (x *GetWorkspaceProfileRequest) String() string
type GetWorkspaceSettingRequest ¶
type GetWorkspaceSettingRequest struct {
// contains filtered or unexported fields
}
func (*GetWorkspaceSettingRequest) Descriptor
deprecated
func (*GetWorkspaceSettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWorkspaceSettingRequest.ProtoReflect.Descriptor instead.
func (*GetWorkspaceSettingRequest) ProtoMessage ¶
func (*GetWorkspaceSettingRequest) ProtoMessage()
func (*GetWorkspaceSettingRequest) ProtoReflect ¶
func (x *GetWorkspaceSettingRequest) ProtoReflect() protoreflect.Message
func (*GetWorkspaceSettingRequest) Reset ¶
func (x *GetWorkspaceSettingRequest) Reset()
func (*GetWorkspaceSettingRequest) String ¶
func (x *GetWorkspaceSettingRequest) String() string
type IdentityProvider ¶
type IdentityProvider struct { // The unique identifier of the identity provider. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Type IdentityProvider_Type `protobuf:"varint,3,opt,name=type,proto3,enum=slash.api.v1.IdentityProvider_Type" json:"type,omitempty"` Config *IdentityProviderConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*IdentityProvider) Descriptor
deprecated
func (*IdentityProvider) Descriptor() ([]byte, []int)
Deprecated: Use IdentityProvider.ProtoReflect.Descriptor instead.
func (*IdentityProvider) GetConfig ¶
func (x *IdentityProvider) GetConfig() *IdentityProviderConfig
func (*IdentityProvider) GetId ¶
func (x *IdentityProvider) GetId() string
func (*IdentityProvider) GetTitle ¶
func (x *IdentityProvider) GetTitle() string
func (*IdentityProvider) GetType ¶
func (x *IdentityProvider) GetType() IdentityProvider_Type
func (*IdentityProvider) ProtoMessage ¶
func (*IdentityProvider) ProtoMessage()
func (*IdentityProvider) ProtoReflect ¶
func (x *IdentityProvider) ProtoReflect() protoreflect.Message
func (*IdentityProvider) Reset ¶
func (x *IdentityProvider) Reset()
func (*IdentityProvider) String ¶
func (x *IdentityProvider) String() string
type IdentityProviderConfig ¶
type IdentityProviderConfig struct { // Types that are assignable to Config: // // *IdentityProviderConfig_Oauth2 Config isIdentityProviderConfig_Config `protobuf_oneof:"config"` // contains filtered or unexported fields }
func (*IdentityProviderConfig) Descriptor
deprecated
func (*IdentityProviderConfig) Descriptor() ([]byte, []int)
Deprecated: Use IdentityProviderConfig.ProtoReflect.Descriptor instead.
func (*IdentityProviderConfig) GetConfig ¶
func (m *IdentityProviderConfig) GetConfig() isIdentityProviderConfig_Config
func (*IdentityProviderConfig) GetOauth2 ¶
func (x *IdentityProviderConfig) GetOauth2() *IdentityProviderConfig_OAuth2Config
func (*IdentityProviderConfig) ProtoMessage ¶
func (*IdentityProviderConfig) ProtoMessage()
func (*IdentityProviderConfig) ProtoReflect ¶
func (x *IdentityProviderConfig) ProtoReflect() protoreflect.Message
func (*IdentityProviderConfig) Reset ¶
func (x *IdentityProviderConfig) Reset()
func (*IdentityProviderConfig) String ¶
func (x *IdentityProviderConfig) String() string
type IdentityProviderConfig_FieldMapping ¶
type IdentityProviderConfig_FieldMapping struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // contains filtered or unexported fields }
func (*IdentityProviderConfig_FieldMapping) Descriptor
deprecated
func (*IdentityProviderConfig_FieldMapping) Descriptor() ([]byte, []int)
Deprecated: Use IdentityProviderConfig_FieldMapping.ProtoReflect.Descriptor instead.
func (*IdentityProviderConfig_FieldMapping) GetDisplayName ¶
func (x *IdentityProviderConfig_FieldMapping) GetDisplayName() string
func (*IdentityProviderConfig_FieldMapping) GetIdentifier ¶
func (x *IdentityProviderConfig_FieldMapping) GetIdentifier() string
func (*IdentityProviderConfig_FieldMapping) ProtoMessage ¶
func (*IdentityProviderConfig_FieldMapping) ProtoMessage()
func (*IdentityProviderConfig_FieldMapping) ProtoReflect ¶
func (x *IdentityProviderConfig_FieldMapping) ProtoReflect() protoreflect.Message
func (*IdentityProviderConfig_FieldMapping) Reset ¶
func (x *IdentityProviderConfig_FieldMapping) Reset()
func (*IdentityProviderConfig_FieldMapping) String ¶
func (x *IdentityProviderConfig_FieldMapping) String() string
type IdentityProviderConfig_OAuth2Config ¶
type IdentityProviderConfig_OAuth2Config struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` AuthUrl string `protobuf:"bytes,3,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"` TokenUrl string `protobuf:"bytes,4,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"` UserInfoUrl string `protobuf:"bytes,5,opt,name=user_info_url,json=userInfoUrl,proto3" json:"user_info_url,omitempty"` Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"` FieldMapping *IdentityProviderConfig_FieldMapping `protobuf:"bytes,7,opt,name=field_mapping,json=fieldMapping,proto3" json:"field_mapping,omitempty"` // contains filtered or unexported fields }
func (*IdentityProviderConfig_OAuth2Config) Descriptor
deprecated
func (*IdentityProviderConfig_OAuth2Config) Descriptor() ([]byte, []int)
Deprecated: Use IdentityProviderConfig_OAuth2Config.ProtoReflect.Descriptor instead.
func (*IdentityProviderConfig_OAuth2Config) GetAuthUrl ¶
func (x *IdentityProviderConfig_OAuth2Config) GetAuthUrl() string
func (*IdentityProviderConfig_OAuth2Config) GetClientId ¶
func (x *IdentityProviderConfig_OAuth2Config) GetClientId() string
func (*IdentityProviderConfig_OAuth2Config) GetClientSecret ¶
func (x *IdentityProviderConfig_OAuth2Config) GetClientSecret() string
func (*IdentityProviderConfig_OAuth2Config) GetFieldMapping ¶
func (x *IdentityProviderConfig_OAuth2Config) GetFieldMapping() *IdentityProviderConfig_FieldMapping
func (*IdentityProviderConfig_OAuth2Config) GetScopes ¶
func (x *IdentityProviderConfig_OAuth2Config) GetScopes() []string
func (*IdentityProviderConfig_OAuth2Config) GetTokenUrl ¶
func (x *IdentityProviderConfig_OAuth2Config) GetTokenUrl() string
func (*IdentityProviderConfig_OAuth2Config) GetUserInfoUrl ¶
func (x *IdentityProviderConfig_OAuth2Config) GetUserInfoUrl() string
func (*IdentityProviderConfig_OAuth2Config) ProtoMessage ¶
func (*IdentityProviderConfig_OAuth2Config) ProtoMessage()
func (*IdentityProviderConfig_OAuth2Config) ProtoReflect ¶
func (x *IdentityProviderConfig_OAuth2Config) ProtoReflect() protoreflect.Message
func (*IdentityProviderConfig_OAuth2Config) Reset ¶
func (x *IdentityProviderConfig_OAuth2Config) Reset()
func (*IdentityProviderConfig_OAuth2Config) String ¶
func (x *IdentityProviderConfig_OAuth2Config) String() string
type IdentityProviderConfig_Oauth2 ¶
type IdentityProviderConfig_Oauth2 struct {
Oauth2 *IdentityProviderConfig_OAuth2Config `protobuf:"bytes,1,opt,name=oauth2,proto3,oneof"`
}
type IdentityProvider_Type ¶
type IdentityProvider_Type int32
const ( IdentityProvider_TYPE_UNSPECIFIED IdentityProvider_Type = 0 IdentityProvider_OAUTH2 IdentityProvider_Type = 1 )
func (IdentityProvider_Type) Descriptor ¶
func (IdentityProvider_Type) Descriptor() protoreflect.EnumDescriptor
func (IdentityProvider_Type) Enum ¶
func (x IdentityProvider_Type) Enum() *IdentityProvider_Type
func (IdentityProvider_Type) EnumDescriptor
deprecated
func (IdentityProvider_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use IdentityProvider_Type.Descriptor instead.
func (IdentityProvider_Type) Number ¶
func (x IdentityProvider_Type) Number() protoreflect.EnumNumber
func (IdentityProvider_Type) String ¶
func (x IdentityProvider_Type) String() string
func (IdentityProvider_Type) Type ¶
func (IdentityProvider_Type) Type() protoreflect.EnumType
type ListCollectionsRequest ¶
type ListCollectionsRequest struct {
// contains filtered or unexported fields
}
func (*ListCollectionsRequest) Descriptor
deprecated
func (*ListCollectionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionsRequest.ProtoReflect.Descriptor instead.
func (*ListCollectionsRequest) ProtoMessage ¶
func (*ListCollectionsRequest) ProtoMessage()
func (*ListCollectionsRequest) ProtoReflect ¶
func (x *ListCollectionsRequest) ProtoReflect() protoreflect.Message
func (*ListCollectionsRequest) Reset ¶
func (x *ListCollectionsRequest) Reset()
func (*ListCollectionsRequest) String ¶
func (x *ListCollectionsRequest) String() string
type ListCollectionsResponse ¶
type ListCollectionsResponse struct { Collections []*Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"` // contains filtered or unexported fields }
func (*ListCollectionsResponse) Descriptor
deprecated
func (*ListCollectionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionsResponse.ProtoReflect.Descriptor instead.
func (*ListCollectionsResponse) GetCollections ¶
func (x *ListCollectionsResponse) GetCollections() []*Collection
func (*ListCollectionsResponse) ProtoMessage ¶
func (*ListCollectionsResponse) ProtoMessage()
func (*ListCollectionsResponse) ProtoReflect ¶
func (x *ListCollectionsResponse) ProtoReflect() protoreflect.Message
func (*ListCollectionsResponse) Reset ¶
func (x *ListCollectionsResponse) Reset()
func (*ListCollectionsResponse) String ¶
func (x *ListCollectionsResponse) String() string
type ListShortcutsRequest ¶
type ListShortcutsRequest struct {
// contains filtered or unexported fields
}
func (*ListShortcutsRequest) Descriptor
deprecated
func (*ListShortcutsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListShortcutsRequest.ProtoReflect.Descriptor instead.
func (*ListShortcutsRequest) ProtoMessage ¶
func (*ListShortcutsRequest) ProtoMessage()
func (*ListShortcutsRequest) ProtoReflect ¶
func (x *ListShortcutsRequest) ProtoReflect() protoreflect.Message
func (*ListShortcutsRequest) Reset ¶
func (x *ListShortcutsRequest) Reset()
func (*ListShortcutsRequest) String ¶
func (x *ListShortcutsRequest) String() string
type ListShortcutsResponse ¶
type ListShortcutsResponse struct { Shortcuts []*Shortcut `protobuf:"bytes,1,rep,name=shortcuts,proto3" json:"shortcuts,omitempty"` // contains filtered or unexported fields }
func (*ListShortcutsResponse) Descriptor
deprecated
func (*ListShortcutsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListShortcutsResponse.ProtoReflect.Descriptor instead.
func (*ListShortcutsResponse) GetShortcuts ¶
func (x *ListShortcutsResponse) GetShortcuts() []*Shortcut
func (*ListShortcutsResponse) ProtoMessage ¶
func (*ListShortcutsResponse) ProtoMessage()
func (*ListShortcutsResponse) ProtoReflect ¶
func (x *ListShortcutsResponse) ProtoReflect() protoreflect.Message
func (*ListShortcutsResponse) Reset ¶
func (x *ListShortcutsResponse) Reset()
func (*ListShortcutsResponse) String ¶
func (x *ListShortcutsResponse) String() string
type ListUserAccessTokensRequest ¶
type ListUserAccessTokensRequest struct { // id is the user id. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ListUserAccessTokensRequest) Descriptor
deprecated
func (*ListUserAccessTokensRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserAccessTokensRequest.ProtoReflect.Descriptor instead.
func (*ListUserAccessTokensRequest) GetId ¶
func (x *ListUserAccessTokensRequest) GetId() int32
func (*ListUserAccessTokensRequest) ProtoMessage ¶
func (*ListUserAccessTokensRequest) ProtoMessage()
func (*ListUserAccessTokensRequest) ProtoReflect ¶
func (x *ListUserAccessTokensRequest) ProtoReflect() protoreflect.Message
func (*ListUserAccessTokensRequest) Reset ¶
func (x *ListUserAccessTokensRequest) Reset()
func (*ListUserAccessTokensRequest) String ¶
func (x *ListUserAccessTokensRequest) String() string
type ListUserAccessTokensResponse ¶
type ListUserAccessTokensResponse struct { AccessTokens []*UserAccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"` // contains filtered or unexported fields }
func (*ListUserAccessTokensResponse) Descriptor
deprecated
func (*ListUserAccessTokensResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUserAccessTokensResponse.ProtoReflect.Descriptor instead.
func (*ListUserAccessTokensResponse) GetAccessTokens ¶
func (x *ListUserAccessTokensResponse) GetAccessTokens() []*UserAccessToken
func (*ListUserAccessTokensResponse) ProtoMessage ¶
func (*ListUserAccessTokensResponse) ProtoMessage()
func (*ListUserAccessTokensResponse) ProtoReflect ¶
func (x *ListUserAccessTokensResponse) ProtoReflect() protoreflect.Message
func (*ListUserAccessTokensResponse) Reset ¶
func (x *ListUserAccessTokensResponse) Reset()
func (*ListUserAccessTokensResponse) String ¶
func (x *ListUserAccessTokensResponse) String() string
type ListUsersRequest ¶
type ListUsersRequest struct {
// contains filtered or unexported fields
}
func (*ListUsersRequest) Descriptor
deprecated
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect ¶
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset ¶
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (x *ListUsersRequest) String() string
type ListUsersResponse ¶
type ListUsersResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*ListUsersResponse) Descriptor
deprecated
func (*ListUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.
func (*ListUsersResponse) GetUsers ¶
func (x *ListUsersResponse) GetUsers() []*User
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect ¶
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset ¶
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (x *ListUsersResponse) String() string
type PlanType ¶
type PlanType int32
func (PlanType) Descriptor ¶
func (PlanType) Descriptor() protoreflect.EnumDescriptor
func (PlanType) EnumDescriptor
deprecated
func (PlanType) Number ¶
func (x PlanType) Number() protoreflect.EnumNumber
func (PlanType) Type ¶
func (PlanType) Type() protoreflect.EnumType
type Role ¶
type Role int32
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
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"` CreatedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,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.api.v1.Visibility" json:"visibility,omitempty"` ViewCount int32 `protobuf:"varint,12,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"` OgMetadata *Shortcut_OpenGraphMetadata `protobuf:"bytes,13,opt,name=og_metadata,json=ogMetadata,proto3" json:"og_metadata,omitempty"` // contains filtered or unexported fields }
func (*Shortcut) Descriptor
deprecated
func (*Shortcut) GetCreatedTime ¶
func (x *Shortcut) GetCreatedTime() *timestamppb.Timestamp
func (*Shortcut) GetCreatorId ¶
func (*Shortcut) GetDescription ¶
func (*Shortcut) GetOgMetadata ¶
func (x *Shortcut) GetOgMetadata() *Shortcut_OpenGraphMetadata
func (*Shortcut) GetUpdatedTime ¶
func (x *Shortcut) GetUpdatedTime() *timestamppb.Timestamp
func (*Shortcut) GetViewCount ¶
func (*Shortcut) GetVisibility ¶
func (x *Shortcut) GetVisibility() Visibility
func (*Shortcut) ProtoMessage ¶
func (*Shortcut) ProtoMessage()
func (*Shortcut) ProtoReflect ¶
func (x *Shortcut) ProtoReflect() protoreflect.Message
type ShortcutServiceClient ¶
type ShortcutServiceClient interface { // ListShortcuts returns a list of shortcuts. ListShortcuts(ctx context.Context, in *ListShortcutsRequest, opts ...grpc.CallOption) (*ListShortcutsResponse, error) // GetShortcut returns a shortcut by id. GetShortcut(ctx context.Context, in *GetShortcutRequest, opts ...grpc.CallOption) (*Shortcut, error) // GetShortcutByName returns a shortcut by name. GetShortcutByName(ctx context.Context, in *GetShortcutByNameRequest, opts ...grpc.CallOption) (*Shortcut, error) // CreateShortcut creates a shortcut. CreateShortcut(ctx context.Context, in *CreateShortcutRequest, opts ...grpc.CallOption) (*Shortcut, error) // UpdateShortcut updates a shortcut. UpdateShortcut(ctx context.Context, in *UpdateShortcutRequest, opts ...grpc.CallOption) (*Shortcut, error) // DeleteShortcut deletes a shortcut by name. DeleteShortcut(ctx context.Context, in *DeleteShortcutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // GetShortcutAnalytics returns the analytics for a shortcut. GetShortcutAnalytics(ctx context.Context, in *GetShortcutAnalyticsRequest, opts ...grpc.CallOption) (*GetShortcutAnalyticsResponse, error) }
ShortcutServiceClient is the client API for ShortcutService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewShortcutServiceClient ¶
func NewShortcutServiceClient(cc grpc.ClientConnInterface) ShortcutServiceClient
type ShortcutServiceServer ¶
type ShortcutServiceServer interface { // ListShortcuts returns a list of shortcuts. ListShortcuts(context.Context, *ListShortcutsRequest) (*ListShortcutsResponse, error) // GetShortcut returns a shortcut by id. GetShortcut(context.Context, *GetShortcutRequest) (*Shortcut, error) // GetShortcutByName returns a shortcut by name. GetShortcutByName(context.Context, *GetShortcutByNameRequest) (*Shortcut, error) // CreateShortcut creates a shortcut. CreateShortcut(context.Context, *CreateShortcutRequest) (*Shortcut, error) // UpdateShortcut updates a shortcut. UpdateShortcut(context.Context, *UpdateShortcutRequest) (*Shortcut, error) // DeleteShortcut deletes a shortcut by name. DeleteShortcut(context.Context, *DeleteShortcutRequest) (*emptypb.Empty, error) // GetShortcutAnalytics returns the analytics for a shortcut. GetShortcutAnalytics(context.Context, *GetShortcutAnalyticsRequest) (*GetShortcutAnalyticsResponse, error) // contains filtered or unexported methods }
ShortcutServiceServer is the server API for ShortcutService service. All implementations must embed UnimplementedShortcutServiceServer for forward compatibility.
type Shortcut_OpenGraphMetadata ¶
type Shortcut_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 (*Shortcut_OpenGraphMetadata) Descriptor
deprecated
func (*Shortcut_OpenGraphMetadata) Descriptor() ([]byte, []int)
Deprecated: Use Shortcut_OpenGraphMetadata.ProtoReflect.Descriptor instead.
func (*Shortcut_OpenGraphMetadata) GetDescription ¶
func (x *Shortcut_OpenGraphMetadata) GetDescription() string
func (*Shortcut_OpenGraphMetadata) GetImage ¶
func (x *Shortcut_OpenGraphMetadata) GetImage() string
func (*Shortcut_OpenGraphMetadata) GetTitle ¶
func (x *Shortcut_OpenGraphMetadata) GetTitle() string
func (*Shortcut_OpenGraphMetadata) ProtoMessage ¶
func (*Shortcut_OpenGraphMetadata) ProtoMessage()
func (*Shortcut_OpenGraphMetadata) ProtoReflect ¶
func (x *Shortcut_OpenGraphMetadata) ProtoReflect() protoreflect.Message
func (*Shortcut_OpenGraphMetadata) Reset ¶
func (x *Shortcut_OpenGraphMetadata) Reset()
func (*Shortcut_OpenGraphMetadata) String ¶
func (x *Shortcut_OpenGraphMetadata) String() string
type SignInRequest ¶
type SignInRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SignInRequest) Descriptor
deprecated
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetEmail ¶
func (x *SignInRequest) GetEmail() string
func (*SignInRequest) GetPassword ¶
func (x *SignInRequest) GetPassword() string
func (*SignInRequest) ProtoMessage ¶
func (*SignInRequest) ProtoMessage()
func (*SignInRequest) ProtoReflect ¶
func (x *SignInRequest) ProtoReflect() protoreflect.Message
func (*SignInRequest) Reset ¶
func (x *SignInRequest) Reset()
func (*SignInRequest) String ¶
func (x *SignInRequest) String() string
type SignInWithSSORequest ¶
type SignInWithSSORequest struct { // The id of the SSO provider. IdpId string `protobuf:"bytes,1,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"` // The code to sign in with. Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // The redirect URI. RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // contains filtered or unexported fields }
func (*SignInWithSSORequest) Descriptor
deprecated
func (*SignInWithSSORequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInWithSSORequest.ProtoReflect.Descriptor instead.
func (*SignInWithSSORequest) GetCode ¶
func (x *SignInWithSSORequest) GetCode() string
func (*SignInWithSSORequest) GetIdpId ¶
func (x *SignInWithSSORequest) GetIdpId() string
func (*SignInWithSSORequest) GetRedirectUri ¶
func (x *SignInWithSSORequest) GetRedirectUri() string
func (*SignInWithSSORequest) ProtoMessage ¶
func (*SignInWithSSORequest) ProtoMessage()
func (*SignInWithSSORequest) ProtoReflect ¶
func (x *SignInWithSSORequest) ProtoReflect() protoreflect.Message
func (*SignInWithSSORequest) Reset ¶
func (x *SignInWithSSORequest) Reset()
func (*SignInWithSSORequest) String ¶
func (x *SignInWithSSORequest) String() string
type SignOutRequest ¶
type SignOutRequest struct {
// contains filtered or unexported fields
}
func (*SignOutRequest) Descriptor
deprecated
func (*SignOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.
func (*SignOutRequest) ProtoMessage ¶
func (*SignOutRequest) ProtoMessage()
func (*SignOutRequest) ProtoReflect ¶
func (x *SignOutRequest) ProtoReflect() protoreflect.Message
func (*SignOutRequest) Reset ¶
func (x *SignOutRequest) Reset()
func (*SignOutRequest) String ¶
func (x *SignOutRequest) String() string
type SignUpRequest ¶
type SignUpRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SignUpRequest) Descriptor
deprecated
func (*SignUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
func (*SignUpRequest) GetEmail ¶
func (x *SignUpRequest) GetEmail() string
func (*SignUpRequest) GetNickname ¶
func (x *SignUpRequest) GetNickname() string
func (*SignUpRequest) GetPassword ¶
func (x *SignUpRequest) GetPassword() string
func (*SignUpRequest) ProtoMessage ¶
func (*SignUpRequest) ProtoMessage()
func (*SignUpRequest) ProtoReflect ¶
func (x *SignUpRequest) ProtoReflect() protoreflect.Message
func (*SignUpRequest) Reset ¶
func (x *SignUpRequest) Reset()
func (*SignUpRequest) String ¶
func (x *SignUpRequest) String() string
type State ¶
type State int32
func (State) Descriptor ¶
func (State) Descriptor() protoreflect.EnumDescriptor
func (State) EnumDescriptor
deprecated
func (State) Number ¶
func (x State) Number() protoreflect.EnumNumber
func (State) Type ¶
func (State) Type() protoreflect.EnumType
type Subscription ¶
type Subscription struct { Plan PlanType `protobuf:"varint,1,opt,name=plan,proto3,enum=slash.api.v1.PlanType" json:"plan,omitempty"` StartedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` ExpiresTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"` Features []string `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"` Seats int32 `protobuf:"varint,5,opt,name=seats,proto3" json:"seats,omitempty"` ShortcutsLimit int32 `protobuf:"varint,6,opt,name=shortcuts_limit,json=shortcutsLimit,proto3" json:"shortcuts_limit,omitempty"` CollectionsLimit int32 `protobuf:"varint,7,opt,name=collections_limit,json=collectionsLimit,proto3" json:"collections_limit,omitempty"` // contains filtered or unexported fields }
func (*Subscription) Descriptor
deprecated
func (*Subscription) Descriptor() ([]byte, []int)
Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) GetCollectionsLimit ¶
func (x *Subscription) GetCollectionsLimit() int32
func (*Subscription) GetExpiresTime ¶
func (x *Subscription) GetExpiresTime() *timestamppb.Timestamp
func (*Subscription) GetFeatures ¶
func (x *Subscription) GetFeatures() []string
func (*Subscription) GetPlan ¶
func (x *Subscription) GetPlan() PlanType
func (*Subscription) GetSeats ¶
func (x *Subscription) GetSeats() int32
func (*Subscription) GetShortcutsLimit ¶
func (x *Subscription) GetShortcutsLimit() int32
func (*Subscription) GetStartedTime ¶
func (x *Subscription) GetStartedTime() *timestamppb.Timestamp
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) ProtoReflect ¶
func (x *Subscription) ProtoReflect() protoreflect.Message
func (*Subscription) Reset ¶
func (x *Subscription) Reset()
func (*Subscription) String ¶
func (x *Subscription) String() string
type SubscriptionServiceClient ¶
type SubscriptionServiceClient interface { // GetSubscription gets the current subscription of Slash instance. GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error) // UpdateSubscription updates the subscription. UpdateSubscription(ctx context.Context, in *UpdateSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error) // DeleteSubscription deletes the subscription. DeleteSubscription(ctx context.Context, in *DeleteSubscriptionRequest, opts ...grpc.CallOption) (*Subscription, error) }
SubscriptionServiceClient is the client API for SubscriptionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSubscriptionServiceClient ¶
func NewSubscriptionServiceClient(cc grpc.ClientConnInterface) SubscriptionServiceClient
type SubscriptionServiceServer ¶
type SubscriptionServiceServer interface { // GetSubscription gets the current subscription of Slash instance. GetSubscription(context.Context, *GetSubscriptionRequest) (*Subscription, error) // UpdateSubscription updates the subscription. UpdateSubscription(context.Context, *UpdateSubscriptionRequest) (*Subscription, error) // DeleteSubscription deletes the subscription. DeleteSubscription(context.Context, *DeleteSubscriptionRequest) (*Subscription, error) // contains filtered or unexported methods }
SubscriptionServiceServer is the server API for SubscriptionService service. All implementations must embed UnimplementedSubscriptionServiceServer for forward compatibility.
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct{}
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAuthServiceServer) GetAuthStatus ¶
func (UnimplementedAuthServiceServer) GetAuthStatus(context.Context, *GetAuthStatusRequest) (*User, error)
func (UnimplementedAuthServiceServer) SignIn ¶
func (UnimplementedAuthServiceServer) SignIn(context.Context, *SignInRequest) (*User, error)
func (UnimplementedAuthServiceServer) SignInWithSSO ¶
func (UnimplementedAuthServiceServer) SignInWithSSO(context.Context, *SignInWithSSORequest) (*User, error)
func (UnimplementedAuthServiceServer) SignOut ¶
func (UnimplementedAuthServiceServer) SignOut(context.Context, *SignOutRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServiceServer) SignUp ¶
func (UnimplementedAuthServiceServer) SignUp(context.Context, *SignUpRequest) (*User, error)
type UnimplementedCollectionServiceServer ¶
type UnimplementedCollectionServiceServer struct{}
UnimplementedCollectionServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCollectionServiceServer) CreateCollection ¶
func (UnimplementedCollectionServiceServer) CreateCollection(context.Context, *CreateCollectionRequest) (*Collection, error)
func (UnimplementedCollectionServiceServer) DeleteCollection ¶
func (UnimplementedCollectionServiceServer) DeleteCollection(context.Context, *DeleteCollectionRequest) (*emptypb.Empty, error)
func (UnimplementedCollectionServiceServer) GetCollection ¶
func (UnimplementedCollectionServiceServer) GetCollection(context.Context, *GetCollectionRequest) (*Collection, error)
func (UnimplementedCollectionServiceServer) GetCollectionByName ¶
func (UnimplementedCollectionServiceServer) GetCollectionByName(context.Context, *GetCollectionByNameRequest) (*Collection, error)
func (UnimplementedCollectionServiceServer) ListCollections ¶
func (UnimplementedCollectionServiceServer) ListCollections(context.Context, *ListCollectionsRequest) (*ListCollectionsResponse, error)
func (UnimplementedCollectionServiceServer) UpdateCollection ¶
func (UnimplementedCollectionServiceServer) UpdateCollection(context.Context, *UpdateCollectionRequest) (*Collection, error)
type UnimplementedShortcutServiceServer ¶
type UnimplementedShortcutServiceServer struct{}
UnimplementedShortcutServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedShortcutServiceServer) CreateShortcut ¶
func (UnimplementedShortcutServiceServer) CreateShortcut(context.Context, *CreateShortcutRequest) (*Shortcut, error)
func (UnimplementedShortcutServiceServer) DeleteShortcut ¶
func (UnimplementedShortcutServiceServer) DeleteShortcut(context.Context, *DeleteShortcutRequest) (*emptypb.Empty, error)
func (UnimplementedShortcutServiceServer) GetShortcut ¶
func (UnimplementedShortcutServiceServer) GetShortcut(context.Context, *GetShortcutRequest) (*Shortcut, error)
func (UnimplementedShortcutServiceServer) GetShortcutAnalytics ¶
func (UnimplementedShortcutServiceServer) GetShortcutAnalytics(context.Context, *GetShortcutAnalyticsRequest) (*GetShortcutAnalyticsResponse, error)
func (UnimplementedShortcutServiceServer) GetShortcutByName ¶
func (UnimplementedShortcutServiceServer) GetShortcutByName(context.Context, *GetShortcutByNameRequest) (*Shortcut, error)
func (UnimplementedShortcutServiceServer) ListShortcuts ¶
func (UnimplementedShortcutServiceServer) ListShortcuts(context.Context, *ListShortcutsRequest) (*ListShortcutsResponse, error)
func (UnimplementedShortcutServiceServer) UpdateShortcut ¶
func (UnimplementedShortcutServiceServer) UpdateShortcut(context.Context, *UpdateShortcutRequest) (*Shortcut, error)
type UnimplementedSubscriptionServiceServer ¶
type UnimplementedSubscriptionServiceServer struct{}
UnimplementedSubscriptionServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSubscriptionServiceServer) DeleteSubscription ¶
func (UnimplementedSubscriptionServiceServer) DeleteSubscription(context.Context, *DeleteSubscriptionRequest) (*Subscription, error)
func (UnimplementedSubscriptionServiceServer) GetSubscription ¶
func (UnimplementedSubscriptionServiceServer) GetSubscription(context.Context, *GetSubscriptionRequest) (*Subscription, error)
func (UnimplementedSubscriptionServiceServer) UpdateSubscription ¶
func (UnimplementedSubscriptionServiceServer) UpdateSubscription(context.Context, *UpdateSubscriptionRequest) (*Subscription, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct{}
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
func (UnimplementedUserServiceServer) CreateUserAccessToken ¶
func (UnimplementedUserServiceServer) CreateUserAccessToken(context.Context, *CreateUserAccessTokenRequest) (*UserAccessToken, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) DeleteUserAccessToken ¶
func (UnimplementedUserServiceServer) DeleteUserAccessToken(context.Context, *DeleteUserAccessTokenRequest) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
func (UnimplementedUserServiceServer) ListUserAccessTokens ¶
func (UnimplementedUserServiceServer) ListUserAccessTokens(context.Context, *ListUserAccessTokensRequest) (*ListUserAccessTokensResponse, error)
func (UnimplementedUserServiceServer) ListUsers ¶
func (UnimplementedUserServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
type UnimplementedUserSettingServiceServer ¶
type UnimplementedUserSettingServiceServer struct{}
UnimplementedUserSettingServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedUserSettingServiceServer) GetUserSetting ¶
func (UnimplementedUserSettingServiceServer) GetUserSetting(context.Context, *GetUserSettingRequest) (*UserSetting, error)
func (UnimplementedUserSettingServiceServer) UpdateUserSetting ¶
func (UnimplementedUserSettingServiceServer) UpdateUserSetting(context.Context, *UpdateUserSettingRequest) (*UserSetting, error)
type UnimplementedWorkspaceServiceServer ¶
type UnimplementedWorkspaceServiceServer struct{}
UnimplementedWorkspaceServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedWorkspaceServiceServer) GetWorkspaceProfile ¶
func (UnimplementedWorkspaceServiceServer) GetWorkspaceProfile(context.Context, *GetWorkspaceProfileRequest) (*WorkspaceProfile, error)
func (UnimplementedWorkspaceServiceServer) GetWorkspaceSetting ¶
func (UnimplementedWorkspaceServiceServer) GetWorkspaceSetting(context.Context, *GetWorkspaceSettingRequest) (*WorkspaceSetting, error)
func (UnimplementedWorkspaceServiceServer) UpdateWorkspaceSetting ¶
func (UnimplementedWorkspaceServiceServer) UpdateWorkspaceSetting(context.Context, *UpdateWorkspaceSettingRequest) (*WorkspaceSetting, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeCollectionServiceServer ¶
type UnsafeCollectionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCollectionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CollectionServiceServer will result in compilation errors.
type UnsafeShortcutServiceServer ¶
type UnsafeShortcutServiceServer interface {
// contains filtered or unexported methods
}
UnsafeShortcutServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShortcutServiceServer will result in compilation errors.
type UnsafeSubscriptionServiceServer ¶
type UnsafeSubscriptionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSubscriptionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SubscriptionServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UnsafeUserSettingServiceServer ¶
type UnsafeUserSettingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserSettingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserSettingServiceServer will result in compilation errors.
type UnsafeWorkspaceServiceServer ¶
type UnsafeWorkspaceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWorkspaceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorkspaceServiceServer will result in compilation errors.
type UpdateCollectionRequest ¶
type UpdateCollectionRequest struct { Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateCollectionRequest) Descriptor
deprecated
func (*UpdateCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCollectionRequest.ProtoReflect.Descriptor instead.
func (*UpdateCollectionRequest) GetCollection ¶
func (x *UpdateCollectionRequest) GetCollection() *Collection
func (*UpdateCollectionRequest) GetUpdateMask ¶
func (x *UpdateCollectionRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateCollectionRequest) ProtoMessage ¶
func (*UpdateCollectionRequest) ProtoMessage()
func (*UpdateCollectionRequest) ProtoReflect ¶
func (x *UpdateCollectionRequest) ProtoReflect() protoreflect.Message
func (*UpdateCollectionRequest) Reset ¶
func (x *UpdateCollectionRequest) Reset()
func (*UpdateCollectionRequest) String ¶
func (x *UpdateCollectionRequest) String() string
type UpdateShortcutRequest ¶
type UpdateShortcutRequest struct { Shortcut *Shortcut `protobuf:"bytes,1,opt,name=shortcut,proto3" json:"shortcut,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateShortcutRequest) Descriptor
deprecated
func (*UpdateShortcutRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShortcutRequest.ProtoReflect.Descriptor instead.
func (*UpdateShortcutRequest) GetShortcut ¶
func (x *UpdateShortcutRequest) GetShortcut() *Shortcut
func (*UpdateShortcutRequest) GetUpdateMask ¶
func (x *UpdateShortcutRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateShortcutRequest) ProtoMessage ¶
func (*UpdateShortcutRequest) ProtoMessage()
func (*UpdateShortcutRequest) ProtoReflect ¶
func (x *UpdateShortcutRequest) ProtoReflect() protoreflect.Message
func (*UpdateShortcutRequest) Reset ¶
func (x *UpdateShortcutRequest) Reset()
func (*UpdateShortcutRequest) String ¶
func (x *UpdateShortcutRequest) String() string
type UpdateSubscriptionRequest ¶
type UpdateSubscriptionRequest struct { LicenseKey string `protobuf:"bytes,1,opt,name=license_key,json=licenseKey,proto3" json:"license_key,omitempty"` // contains filtered or unexported fields }
func (*UpdateSubscriptionRequest) Descriptor
deprecated
func (*UpdateSubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*UpdateSubscriptionRequest) GetLicenseKey ¶
func (x *UpdateSubscriptionRequest) GetLicenseKey() string
func (*UpdateSubscriptionRequest) ProtoMessage ¶
func (*UpdateSubscriptionRequest) ProtoMessage()
func (*UpdateSubscriptionRequest) ProtoReflect ¶
func (x *UpdateSubscriptionRequest) ProtoReflect() protoreflect.Message
func (*UpdateSubscriptionRequest) Reset ¶
func (x *UpdateSubscriptionRequest) Reset()
func (*UpdateSubscriptionRequest) String ¶
func (x *UpdateSubscriptionRequest) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetUpdateMask ¶
func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateUserRequest) GetUser ¶
func (x *UpdateUserRequest) GetUser() *User
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UpdateUserSettingRequest ¶
type UpdateUserSettingRequest struct { // id is the user id. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // user_setting is the user setting to update. UserSetting *UserSetting `protobuf:"bytes,2,opt,name=user_setting,json=userSetting,proto3" json:"user_setting,omitempty"` // update_mask is the field mask to update. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserSettingRequest) Descriptor
deprecated
func (*UpdateUserSettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserSettingRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserSettingRequest) GetId ¶
func (x *UpdateUserSettingRequest) GetId() int32
func (*UpdateUserSettingRequest) GetUpdateMask ¶
func (x *UpdateUserSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateUserSettingRequest) GetUserSetting ¶
func (x *UpdateUserSettingRequest) GetUserSetting() *UserSetting
func (*UpdateUserSettingRequest) ProtoMessage ¶
func (*UpdateUserSettingRequest) ProtoMessage()
func (*UpdateUserSettingRequest) ProtoReflect ¶
func (x *UpdateUserSettingRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserSettingRequest) Reset ¶
func (x *UpdateUserSettingRequest) Reset()
func (*UpdateUserSettingRequest) String ¶
func (x *UpdateUserSettingRequest) String() string
type UpdateWorkspaceSettingRequest ¶
type UpdateWorkspaceSettingRequest struct { // The user setting. Setting *WorkspaceSetting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"` // The update mask. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateWorkspaceSettingRequest) Descriptor
deprecated
func (*UpdateWorkspaceSettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateWorkspaceSettingRequest.ProtoReflect.Descriptor instead.
func (*UpdateWorkspaceSettingRequest) GetSetting ¶
func (x *UpdateWorkspaceSettingRequest) GetSetting() *WorkspaceSetting
func (*UpdateWorkspaceSettingRequest) GetUpdateMask ¶
func (x *UpdateWorkspaceSettingRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateWorkspaceSettingRequest) ProtoMessage ¶
func (*UpdateWorkspaceSettingRequest) ProtoMessage()
func (*UpdateWorkspaceSettingRequest) ProtoReflect ¶
func (x *UpdateWorkspaceSettingRequest) ProtoReflect() protoreflect.Message
func (*UpdateWorkspaceSettingRequest) Reset ¶
func (x *UpdateWorkspaceSettingRequest) Reset()
func (*UpdateWorkspaceSettingRequest) String ¶
func (x *UpdateWorkspaceSettingRequest) String() string
type User ¶
type User struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` State State `protobuf:"varint,2,opt,name=state,proto3,enum=slash.api.v1.State" json:"state,omitempty"` CreatedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"` Role Role `protobuf:"varint,6,opt,name=role,proto3,enum=slash.api.v1.Role" json:"role,omitempty"` Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` Nickname string `protobuf:"bytes,8,opt,name=nickname,proto3" json:"nickname,omitempty"` Password string `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedTime ¶
func (x *User) GetCreatedTime() *timestamppb.Timestamp
func (*User) GetNickname ¶
func (*User) GetPassword ¶
func (*User) GetUpdatedTime ¶
func (x *User) GetUpdatedTime() *timestamppb.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserAccessToken ¶
type UserAccessToken struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` IssuedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // contains filtered or unexported fields }
func (*UserAccessToken) Descriptor
deprecated
func (*UserAccessToken) Descriptor() ([]byte, []int)
Deprecated: Use UserAccessToken.ProtoReflect.Descriptor instead.
func (*UserAccessToken) GetAccessToken ¶
func (x *UserAccessToken) GetAccessToken() string
func (*UserAccessToken) GetDescription ¶
func (x *UserAccessToken) GetDescription() string
func (*UserAccessToken) GetExpiresAt ¶
func (x *UserAccessToken) GetExpiresAt() *timestamppb.Timestamp
func (*UserAccessToken) GetIssuedAt ¶
func (x *UserAccessToken) GetIssuedAt() *timestamppb.Timestamp
func (*UserAccessToken) ProtoMessage ¶
func (*UserAccessToken) ProtoMessage()
func (*UserAccessToken) ProtoReflect ¶
func (x *UserAccessToken) ProtoReflect() protoreflect.Message
func (*UserAccessToken) Reset ¶
func (x *UserAccessToken) Reset()
func (*UserAccessToken) String ¶
func (x *UserAccessToken) String() string
type UserServiceClient ¶
type UserServiceClient interface { // ListUsers returns a list of users. ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) // GetUser returns a user by id. GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) // CreateUser creates a new user. CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) // DeleteUser deletes a user by id. DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // ListUserAccessTokens returns a list of access tokens for a user. ListUserAccessTokens(ctx context.Context, in *ListUserAccessTokensRequest, opts ...grpc.CallOption) (*ListUserAccessTokensResponse, error) // CreateUserAccessToken creates a new access token for a user. CreateUserAccessToken(ctx context.Context, in *CreateUserAccessTokenRequest, opts ...grpc.CallOption) (*UserAccessToken, error) // DeleteUserAccessToken deletes an access token for a user. DeleteUserAccessToken(ctx context.Context, in *DeleteUserAccessTokenRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { // ListUsers returns a list of users. ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) // GetUser returns a user by id. GetUser(context.Context, *GetUserRequest) (*User, error) // CreateUser creates a new user. CreateUser(context.Context, *CreateUserRequest) (*User, error) UpdateUser(context.Context, *UpdateUserRequest) (*User, error) // DeleteUser deletes a user by id. DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) // ListUserAccessTokens returns a list of access tokens for a user. ListUserAccessTokens(context.Context, *ListUserAccessTokensRequest) (*ListUserAccessTokensResponse, error) // CreateUserAccessToken creates a new access token for a user. CreateUserAccessToken(context.Context, *CreateUserAccessTokenRequest) (*UserAccessToken, error) // DeleteUserAccessToken deletes an access token for a user. DeleteUserAccessToken(context.Context, *DeleteUserAccessTokenRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility.
type UserSetting ¶
type UserSetting struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` General *UserSetting_GeneralSetting `protobuf:"bytes,2,opt,name=general,proto3" json:"general,omitempty"` AccessTokens *UserSetting_AccessTokensSetting `protobuf:"bytes,3,opt,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"` // 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() *UserSetting_AccessTokensSetting
func (*UserSetting) GetGeneral ¶
func (x *UserSetting) GetGeneral() *UserSetting_GeneralSetting
func (*UserSetting) GetUserId ¶
func (x *UserSetting) GetUserId() int32
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 UserSettingServiceClient ¶
type UserSettingServiceClient interface { // GetUserSetting returns the user setting. GetUserSetting(ctx context.Context, in *GetUserSettingRequest, opts ...grpc.CallOption) (*UserSetting, error) // UpdateUserSetting updates the user setting. UpdateUserSetting(ctx context.Context, in *UpdateUserSettingRequest, opts ...grpc.CallOption) (*UserSetting, error) }
UserSettingServiceClient is the client API for UserSettingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserSettingServiceClient ¶
func NewUserSettingServiceClient(cc grpc.ClientConnInterface) UserSettingServiceClient
type UserSettingServiceServer ¶
type UserSettingServiceServer interface { // GetUserSetting returns the user setting. GetUserSetting(context.Context, *GetUserSettingRequest) (*UserSetting, error) // UpdateUserSetting updates the user setting. UpdateUserSetting(context.Context, *UpdateUserSettingRequest) (*UserSetting, error) // contains filtered or unexported methods }
UserSettingServiceServer is the server API for UserSettingService service. All implementations must embed UnimplementedUserSettingServiceServer for forward compatibility.
type UserSetting_AccessTokensSetting ¶
type UserSetting_AccessTokensSetting struct { AccessTokens []*UserSetting_AccessTokensSetting_AccessToken `protobuf:"bytes,1,rep,name=access_tokens,json=accessTokens,proto3" json:"access_tokens,omitempty"` // Nested repeated field // contains filtered or unexported fields }
func (*UserSetting_AccessTokensSetting) Descriptor
deprecated
func (*UserSetting_AccessTokensSetting) Descriptor() ([]byte, []int)
Deprecated: Use UserSetting_AccessTokensSetting.ProtoReflect.Descriptor instead.
func (*UserSetting_AccessTokensSetting) GetAccessTokens ¶
func (x *UserSetting_AccessTokensSetting) GetAccessTokens() []*UserSetting_AccessTokensSetting_AccessToken
func (*UserSetting_AccessTokensSetting) ProtoMessage ¶
func (*UserSetting_AccessTokensSetting) ProtoMessage()
func (*UserSetting_AccessTokensSetting) ProtoReflect ¶
func (x *UserSetting_AccessTokensSetting) ProtoReflect() protoreflect.Message
func (*UserSetting_AccessTokensSetting) Reset ¶
func (x *UserSetting_AccessTokensSetting) Reset()
func (*UserSetting_AccessTokensSetting) String ¶
func (x *UserSetting_AccessTokensSetting) String() string
type UserSetting_AccessTokensSetting_AccessToken ¶
type UserSetting_AccessTokensSetting_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 (*UserSetting_AccessTokensSetting_AccessToken) Descriptor
deprecated
func (*UserSetting_AccessTokensSetting_AccessToken) Descriptor() ([]byte, []int)
Deprecated: Use UserSetting_AccessTokensSetting_AccessToken.ProtoReflect.Descriptor instead.
func (*UserSetting_AccessTokensSetting_AccessToken) GetAccessToken ¶
func (x *UserSetting_AccessTokensSetting_AccessToken) GetAccessToken() string
func (*UserSetting_AccessTokensSetting_AccessToken) GetDescription ¶
func (x *UserSetting_AccessTokensSetting_AccessToken) GetDescription() string
func (*UserSetting_AccessTokensSetting_AccessToken) ProtoMessage ¶
func (*UserSetting_AccessTokensSetting_AccessToken) ProtoMessage()
func (*UserSetting_AccessTokensSetting_AccessToken) ProtoReflect ¶
func (x *UserSetting_AccessTokensSetting_AccessToken) ProtoReflect() protoreflect.Message
func (*UserSetting_AccessTokensSetting_AccessToken) Reset ¶
func (x *UserSetting_AccessTokensSetting_AccessToken) Reset()
func (*UserSetting_AccessTokensSetting_AccessToken) String ¶
func (x *UserSetting_AccessTokensSetting_AccessToken) String() string
type UserSetting_GeneralSetting ¶
type UserSetting_GeneralSetting struct { Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"` ColorTheme string `protobuf:"bytes,2,opt,name=color_theme,json=colorTheme,proto3" json:"color_theme,omitempty"` // contains filtered or unexported fields }
func (*UserSetting_GeneralSetting) Descriptor
deprecated
func (*UserSetting_GeneralSetting) Descriptor() ([]byte, []int)
Deprecated: Use UserSetting_GeneralSetting.ProtoReflect.Descriptor instead.
func (*UserSetting_GeneralSetting) GetColorTheme ¶
func (x *UserSetting_GeneralSetting) GetColorTheme() string
func (*UserSetting_GeneralSetting) GetLocale ¶
func (x *UserSetting_GeneralSetting) GetLocale() string
func (*UserSetting_GeneralSetting) ProtoMessage ¶
func (*UserSetting_GeneralSetting) ProtoMessage()
func (*UserSetting_GeneralSetting) ProtoReflect ¶
func (x *UserSetting_GeneralSetting) ProtoReflect() protoreflect.Message
func (*UserSetting_GeneralSetting) Reset ¶
func (x *UserSetting_GeneralSetting) Reset()
func (*UserSetting_GeneralSetting) String ¶
func (x *UserSetting_GeneralSetting) String() string
type Visibility ¶
type Visibility int32
const ( Visibility_VISIBILITY_UNSPECIFIED Visibility = 0 Visibility_WORKSPACE Visibility = 1 Visibility_PUBLIC Visibility = 2 )
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 ¶
func (Visibility) Type() protoreflect.EnumType
type WorkspaceProfile ¶
type WorkspaceProfile struct { // Current workspace mode: dev, prod. Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` // Current workspace version. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // The owner name. // Format: "users/{id}" Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` // The workspace subscription. Subscription *Subscription `protobuf:"bytes,4,opt,name=subscription,proto3" json:"subscription,omitempty"` // The custom style. CustomStyle string `protobuf:"bytes,5,opt,name=custom_style,json=customStyle,proto3" json:"custom_style,omitempty"` // The workspace branding. Branding []byte `protobuf:"bytes,6,opt,name=branding,proto3" json:"branding,omitempty"` // contains filtered or unexported fields }
func (*WorkspaceProfile) Descriptor
deprecated
func (*WorkspaceProfile) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceProfile.ProtoReflect.Descriptor instead.
func (*WorkspaceProfile) GetBranding ¶
func (x *WorkspaceProfile) GetBranding() []byte
func (*WorkspaceProfile) GetCustomStyle ¶
func (x *WorkspaceProfile) GetCustomStyle() string
func (*WorkspaceProfile) GetMode ¶
func (x *WorkspaceProfile) GetMode() string
func (*WorkspaceProfile) GetOwner ¶
func (x *WorkspaceProfile) GetOwner() string
func (*WorkspaceProfile) GetSubscription ¶
func (x *WorkspaceProfile) GetSubscription() *Subscription
func (*WorkspaceProfile) GetVersion ¶
func (x *WorkspaceProfile) GetVersion() string
func (*WorkspaceProfile) ProtoMessage ¶
func (*WorkspaceProfile) ProtoMessage()
func (*WorkspaceProfile) ProtoReflect ¶
func (x *WorkspaceProfile) ProtoReflect() protoreflect.Message
func (*WorkspaceProfile) Reset ¶
func (x *WorkspaceProfile) Reset()
func (*WorkspaceProfile) String ¶
func (x *WorkspaceProfile) String() string
type WorkspaceServiceClient ¶
type WorkspaceServiceClient interface { GetWorkspaceProfile(ctx context.Context, in *GetWorkspaceProfileRequest, opts ...grpc.CallOption) (*WorkspaceProfile, error) GetWorkspaceSetting(ctx context.Context, in *GetWorkspaceSettingRequest, opts ...grpc.CallOption) (*WorkspaceSetting, error) UpdateWorkspaceSetting(ctx context.Context, in *UpdateWorkspaceSettingRequest, opts ...grpc.CallOption) (*WorkspaceSetting, error) }
WorkspaceServiceClient is the client API for WorkspaceService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWorkspaceServiceClient ¶
func NewWorkspaceServiceClient(cc grpc.ClientConnInterface) WorkspaceServiceClient
type WorkspaceServiceServer ¶
type WorkspaceServiceServer interface { GetWorkspaceProfile(context.Context, *GetWorkspaceProfileRequest) (*WorkspaceProfile, error) GetWorkspaceSetting(context.Context, *GetWorkspaceSettingRequest) (*WorkspaceSetting, error) UpdateWorkspaceSetting(context.Context, *UpdateWorkspaceSettingRequest) (*WorkspaceSetting, error) // contains filtered or unexported methods }
WorkspaceServiceServer is the server API for WorkspaceService service. All implementations must embed UnimplementedWorkspaceServiceServer for forward compatibility.
type WorkspaceSetting ¶
type WorkspaceSetting struct { // The url of instance. InstanceUrl string `protobuf:"bytes,1,opt,name=instance_url,json=instanceUrl,proto3" json:"instance_url,omitempty"` // The workspace custome branding. Branding []byte `protobuf:"bytes,2,opt,name=branding,proto3" json:"branding,omitempty"` // The custom style. CustomStyle string `protobuf:"bytes,3,opt,name=custom_style,json=customStyle,proto3" json:"custom_style,omitempty"` // The default visibility of shortcuts and collections. DefaultVisibility Visibility `` /* 142-byte string literal not displayed */ // The identity providers. IdentityProviders []*IdentityProvider `protobuf:"bytes,5,rep,name=identity_providers,json=identityProviders,proto3" json:"identity_providers,omitempty"` // Whether to disallow user registration by email&password. DisallowUserRegistration bool `` /* 136-byte string literal not displayed */ // Whether to disallow password authentication. DisallowPasswordAuth bool `protobuf:"varint,7,opt,name=disallow_password_auth,json=disallowPasswordAuth,proto3" json:"disallow_password_auth,omitempty"` // contains filtered or unexported fields }
func (*WorkspaceSetting) Descriptor
deprecated
func (*WorkspaceSetting) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceSetting.ProtoReflect.Descriptor instead.
func (*WorkspaceSetting) GetBranding ¶
func (x *WorkspaceSetting) GetBranding() []byte
func (*WorkspaceSetting) GetCustomStyle ¶
func (x *WorkspaceSetting) GetCustomStyle() string
func (*WorkspaceSetting) GetDefaultVisibility ¶
func (x *WorkspaceSetting) GetDefaultVisibility() Visibility
func (*WorkspaceSetting) GetDisallowPasswordAuth ¶
func (x *WorkspaceSetting) GetDisallowPasswordAuth() bool
func (*WorkspaceSetting) GetDisallowUserRegistration ¶
func (x *WorkspaceSetting) GetDisallowUserRegistration() bool
func (*WorkspaceSetting) GetIdentityProviders ¶
func (x *WorkspaceSetting) GetIdentityProviders() []*IdentityProvider
func (*WorkspaceSetting) GetInstanceUrl ¶
func (x *WorkspaceSetting) GetInstanceUrl() string
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
Source Files ¶
- auth_service.pb.go
- auth_service.pb.gw.go
- auth_service_grpc.pb.go
- collection_service.pb.go
- collection_service.pb.gw.go
- collection_service_grpc.pb.go
- common.pb.go
- shortcut_service.pb.go
- shortcut_service.pb.gw.go
- shortcut_service_grpc.pb.go
- subscription_service.pb.go
- subscription_service.pb.gw.go
- subscription_service_grpc.pb.go
- user_service.pb.go
- user_service.pb.gw.go
- user_service_grpc.pb.go
- user_setting_service.pb.go
- user_setting_service.pb.gw.go
- user_setting_service_grpc.pb.go
- workspace_service.pb.go
- workspace_service.pb.gw.go
- workspace_service_grpc.pb.go