Documentation
¶
Index ¶
- Constants
- Variables
- func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewInboxServiceHandler(svc InboxServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewMarkdownServiceHandler(svc MarkdownServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewMemoServiceHandler(svc MemoServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewWorkspaceServiceHandler(svc WorkspaceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type AuthServiceClient
- type AuthServiceHandler
- type CreateMemoRequest
- func (*CreateMemoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMemoRequest) GetMemo() *model.Memo
- func (x *CreateMemoRequest) GetMemoId() string
- func (x *CreateMemoRequest) GetRequestId() string
- func (x *CreateMemoRequest) GetValidateOnly() bool
- func (*CreateMemoRequest) ProtoMessage()
- func (x *CreateMemoRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMemoRequest) Reset()
- func (x *CreateMemoRequest) String() string
- type CreateSessionRequest
- func (*CreateSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionRequest) GetCredentials() isCreateSessionRequest_Credentials
- func (x *CreateSessionRequest) GetPasswordCredentials() *CreateSessionRequest_PasswordCredentials
- func (x *CreateSessionRequest) GetSsoCredentials() *CreateSessionRequest_SSOCredentials
- func (*CreateSessionRequest) ProtoMessage()
- func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSessionRequest) Reset()
- func (x *CreateSessionRequest) String() string
- type CreateSessionRequest_PasswordCredentials
- func (*CreateSessionRequest_PasswordCredentials) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionRequest_PasswordCredentials) GetPassword() string
- func (x *CreateSessionRequest_PasswordCredentials) GetUsername() string
- func (*CreateSessionRequest_PasswordCredentials) ProtoMessage()
- func (x *CreateSessionRequest_PasswordCredentials) ProtoReflect() protoreflect.Message
- func (x *CreateSessionRequest_PasswordCredentials) Reset()
- func (x *CreateSessionRequest_PasswordCredentials) String() string
- type CreateSessionRequest_PasswordCredentials_
- type CreateSessionRequest_SSOCredentials
- func (*CreateSessionRequest_SSOCredentials) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionRequest_SSOCredentials) GetCode() string
- func (x *CreateSessionRequest_SSOCredentials) GetIdpId() int32
- func (x *CreateSessionRequest_SSOCredentials) GetRedirectUri() string
- func (*CreateSessionRequest_SSOCredentials) ProtoMessage()
- func (x *CreateSessionRequest_SSOCredentials) ProtoReflect() protoreflect.Message
- func (x *CreateSessionRequest_SSOCredentials) Reset()
- func (x *CreateSessionRequest_SSOCredentials) String() string
- type CreateSessionRequest_SsoCredentials
- type CreateSessionResponse
- func (*CreateSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionResponse) GetLastAccessedAt() *timestamppb.Timestamp
- func (x *CreateSessionResponse) GetUser() *model.User
- func (*CreateSessionResponse) ProtoMessage()
- func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSessionResponse) Reset()
- func (x *CreateSessionResponse) String() string
- type CreateUserRequest
- type GetAuthStatusRequest
- type GetAuthStatusResponse
- func (*GetAuthStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthStatusResponse) GetUser() *model.User
- func (*GetAuthStatusResponse) ProtoMessage()
- func (x *GetAuthStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetAuthStatusResponse) Reset()
- func (x *GetAuthStatusResponse) String() string
- type GetCurrentSessionRequest
- type GetCurrentSessionResponse
- func (*GetCurrentSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentSessionResponse) GetLastAccessedAt() *timestamppb.Timestamp
- func (x *GetCurrentSessionResponse) GetUser() *model.User
- func (*GetCurrentSessionResponse) ProtoMessage()
- func (x *GetCurrentSessionResponse) ProtoReflect() protoreflect.Message
- func (x *GetCurrentSessionResponse) Reset()
- func (x *GetCurrentSessionResponse) String() string
- type GetMemoRequest
- func (*GetMemoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMemoRequest) GetName() string
- func (x *GetMemoRequest) GetReadMask() *fieldmaskpb.FieldMask
- func (*GetMemoRequest) ProtoMessage()
- func (x *GetMemoRequest) ProtoReflect() protoreflect.Message
- func (x *GetMemoRequest) Reset()
- func (x *GetMemoRequest) String() string
- type GetUserSettingRequest
- func (*GetUserSettingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserSettingRequest) GetName() string
- func (*GetUserSettingRequest) ProtoMessage()
- func (x *GetUserSettingRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserSettingRequest) Reset()
- func (x *GetUserSettingRequest) String() string
- type GetUserStatsRequest
- func (*GetUserStatsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserStatsRequest) GetName() string
- func (*GetUserStatsRequest) ProtoMessage()
- func (x *GetUserStatsRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserStatsRequest) Reset()
- func (x *GetUserStatsRequest) String() string
- type GetWorkspaceProfileRequest
- type GetWorkspaceSettingRequest
- func (*GetWorkspaceSettingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetWorkspaceSettingRequest) GetName() string
- func (*GetWorkspaceSettingRequest) ProtoMessage()
- func (x *GetWorkspaceSettingRequest) ProtoReflect() protoreflect.Message
- func (x *GetWorkspaceSettingRequest) Reset()
- func (x *GetWorkspaceSettingRequest) String() string
- type InboxServiceClient
- type InboxServiceHandler
- type ListInboxesRequest
- func (*ListInboxesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListInboxesRequest) GetFilter() string
- func (x *ListInboxesRequest) GetOrderBy() string
- func (x *ListInboxesRequest) GetPageSize() int32
- func (x *ListInboxesRequest) GetPageToken() string
- func (x *ListInboxesRequest) GetParent() string
- func (*ListInboxesRequest) ProtoMessage()
- func (x *ListInboxesRequest) ProtoReflect() protoreflect.Message
- func (x *ListInboxesRequest) Reset()
- func (x *ListInboxesRequest) String() string
- type ListInboxesResponse
- func (*ListInboxesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListInboxesResponse) GetInboxes() []*model.Inbox
- func (x *ListInboxesResponse) GetNextPageToken() string
- func (x *ListInboxesResponse) GetTotalSize() int32
- func (*ListInboxesResponse) ProtoMessage()
- func (x *ListInboxesResponse) ProtoReflect() protoreflect.Message
- func (x *ListInboxesResponse) Reset()
- func (x *ListInboxesResponse) String() string
- type ListMemosRequest
- func (*ListMemosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMemosRequest) GetFilter() string
- func (x *ListMemosRequest) GetOrderBy() string
- func (x *ListMemosRequest) GetPageSize() int32
- func (x *ListMemosRequest) GetPageToken() string
- func (x *ListMemosRequest) GetShowDeleted() bool
- func (x *ListMemosRequest) GetState() model.State
- func (*ListMemosRequest) ProtoMessage()
- func (x *ListMemosRequest) ProtoReflect() protoreflect.Message
- func (x *ListMemosRequest) Reset()
- func (x *ListMemosRequest) String() string
- type ListMemosResponse
- func (*ListMemosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListMemosResponse) GetMemos() []*model.Memo
- func (x *ListMemosResponse) GetNextPageToken() string
- func (x *ListMemosResponse) GetTotalSize() int32
- func (*ListMemosResponse) ProtoMessage()
- func (x *ListMemosResponse) ProtoReflect() protoreflect.Message
- func (x *ListMemosResponse) Reset()
- func (x *ListMemosResponse) String() string
- type ListUserSettingsRequest
- func (*ListUserSettingsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserSettingsRequest) GetPageSize() int32
- func (x *ListUserSettingsRequest) GetPageToken() string
- func (x *ListUserSettingsRequest) GetParent() string
- func (*ListUserSettingsRequest) ProtoMessage()
- func (x *ListUserSettingsRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserSettingsRequest) Reset()
- func (x *ListUserSettingsRequest) String() string
- type ListUserSettingsResponse
- func (*ListUserSettingsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserSettingsResponse) GetNextPageToken() string
- func (x *ListUserSettingsResponse) GetSettings() []*model.UserSetting
- func (x *ListUserSettingsResponse) GetTotalSize() int32
- func (*ListUserSettingsResponse) ProtoMessage()
- func (x *ListUserSettingsResponse) ProtoReflect() protoreflect.Message
- func (x *ListUserSettingsResponse) Reset()
- func (x *ListUserSettingsResponse) String() string
- type MarkdownServiceClient
- type MarkdownServiceHandler
- type MemoServiceClient
- type MemoServiceHandler
- type ParseMarkdownRequest
- func (*ParseMarkdownRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ParseMarkdownRequest) GetMarkdown() string
- func (*ParseMarkdownRequest) ProtoMessage()
- func (x *ParseMarkdownRequest) ProtoReflect() protoreflect.Message
- func (x *ParseMarkdownRequest) Reset()
- func (x *ParseMarkdownRequest) String() string
- type ParseMarkdownResponse
- func (*ParseMarkdownResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ParseMarkdownResponse) GetNodes() []*model.Node
- func (*ParseMarkdownResponse) ProtoMessage()
- func (x *ParseMarkdownResponse) ProtoReflect() protoreflect.Message
- func (x *ParseMarkdownResponse) Reset()
- func (x *ParseMarkdownResponse) String() string
- type SignInRequest
- func (*SignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInRequest) GetNeverExpire() bool
- func (x *SignInRequest) GetPassword() string
- func (x *SignInRequest) GetUsername() string
- func (*SignInRequest) ProtoMessage()
- func (x *SignInRequest) ProtoReflect() protoreflect.Message
- func (x *SignInRequest) Reset()
- func (x *SignInRequest) String() string
- type SignOutRequest
- type SignUpRequest
- func (*SignUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpRequest) GetPassword() string
- func (x *SignUpRequest) GetUsername() string
- func (*SignUpRequest) ProtoMessage()
- func (x *SignUpRequest) ProtoReflect() protoreflect.Message
- func (x *SignUpRequest) Reset()
- func (x *SignUpRequest) String() string
- type UnimplementedAuthServiceHandler
- func (UnimplementedAuthServiceHandler) CreateSession(context.Context, *connect.Request[CreateSessionRequest]) (*connect.Response[CreateSessionResponse], error)
- func (UnimplementedAuthServiceHandler) GetCurrentSession(context.Context, *connect.Request[GetCurrentSessionRequest]) (*connect.Response[GetCurrentSessionResponse], error)
- type UnimplementedInboxServiceHandler
- type UnimplementedMarkdownServiceHandler
- type UnimplementedMemoServiceHandler
- func (UnimplementedMemoServiceHandler) CreateMemo(context.Context, *connect.Request[CreateMemoRequest]) (*connect.Response[model.Memo], error)
- func (UnimplementedMemoServiceHandler) GetMemo(context.Context, *connect.Request[GetMemoRequest]) (*connect.Response[model.Memo], error)
- func (UnimplementedMemoServiceHandler) ListMemos(context.Context, *connect.Request[ListMemosRequest]) (*connect.Response[ListMemosResponse], error)
- type UnimplementedUserServiceHandler
- func (UnimplementedUserServiceHandler) CreateUser(context.Context, *connect.Request[CreateUserRequest]) (*connect.Response[model.User], error)
- func (UnimplementedUserServiceHandler) GetUserSetting(context.Context, *connect.Request[GetUserSettingRequest]) (*connect.Response[model.UserSetting], error)
- func (UnimplementedUserServiceHandler) GetUserStats(context.Context, *connect.Request[GetUserStatsRequest]) (*connect.Response[UserStats], error)
- func (UnimplementedUserServiceHandler) ListUserSettings(context.Context, *connect.Request[ListUserSettingsRequest]) (*connect.Response[ListUserSettingsResponse], error)
- type UnimplementedWorkspaceServiceHandler
- func (UnimplementedWorkspaceServiceHandler) GetWorkspaceProfile(context.Context, *connect.Request[GetWorkspaceProfileRequest]) (*connect.Response[model.WorkspaceProfile], error)
- func (UnimplementedWorkspaceServiceHandler) GetWorkspaceSetting(context.Context, *connect.Request[GetWorkspaceSettingRequest]) (*connect.Response[model.WorkspaceSetting], error)
- type UserServiceClient
- type UserServiceHandler
- type UserStats
- func (*UserStats) Descriptor() ([]byte, []int)deprecated
- func (x *UserStats) GetMemoDisplayTimestamps() []*timestamppb.Timestamp
- func (x *UserStats) GetMemoTypeStats() *UserStats_MemoTypeStats
- func (x *UserStats) GetName() string
- func (x *UserStats) GetPinnedMemos() []string
- func (x *UserStats) GetTagCount() map[string]int32
- func (x *UserStats) GetTotalMemoCount() int32
- func (*UserStats) ProtoMessage()
- func (x *UserStats) ProtoReflect() protoreflect.Message
- func (x *UserStats) Reset()
- func (x *UserStats) String() string
- type UserStats_MemoTypeStats
- func (*UserStats_MemoTypeStats) Descriptor() ([]byte, []int)deprecated
- func (x *UserStats_MemoTypeStats) GetCodeCount() int32
- func (x *UserStats_MemoTypeStats) GetLinkCount() int32
- func (x *UserStats_MemoTypeStats) GetTodoCount() int32
- func (x *UserStats_MemoTypeStats) GetUndoCount() int32
- func (*UserStats_MemoTypeStats) ProtoMessage()
- func (x *UserStats_MemoTypeStats) ProtoReflect() protoreflect.Message
- func (x *UserStats_MemoTypeStats) Reset()
- func (x *UserStats_MemoTypeStats) String() string
- type WorkspaceServiceClient
- type WorkspaceServiceHandler
Constants ¶
const ( // AuthServiceGetCurrentSessionProcedure is the fully-qualified name of the AuthService's // GetCurrentSession RPC. AuthServiceGetCurrentSessionProcedure = "/api.v2.AuthService/GetCurrentSession" // AuthServiceCreateSessionProcedure is the fully-qualified name of the AuthService's CreateSession // RPC. AuthServiceCreateSessionProcedure = "/api.v2.AuthService/CreateSession" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const ( // MemoServiceCreateMemoProcedure is the fully-qualified name of the MemoService's CreateMemo RPC. MemoServiceCreateMemoProcedure = "/api.v2.MemoService/CreateMemo" // MemoServiceListMemosProcedure is the fully-qualified name of the MemoService's ListMemos RPC. MemoServiceListMemosProcedure = "/api.v2.MemoService/ListMemos" // MemoServiceGetMemoProcedure is the fully-qualified name of the MemoService's GetMemo RPC. MemoServiceGetMemoProcedure = "/api.v2.MemoService/GetMemo" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const ( // UserServiceCreateUserProcedure is the fully-qualified name of the UserService's CreateUser RPC. UserServiceCreateUserProcedure = "/api.v2.UserService/CreateUser" // UserServiceGetUserStatsProcedure is the fully-qualified name of the UserService's GetUserStats // RPC. UserServiceGetUserStatsProcedure = "/api.v2.UserService/GetUserStats" // UserServiceGetUserSettingProcedure is the fully-qualified name of the UserService's // GetUserSetting RPC. UserServiceGetUserSettingProcedure = "/api.v2.UserService/GetUserSetting" // UserServiceListUserSettingsProcedure is the fully-qualified name of the UserService's // ListUserSettings RPC. UserServiceListUserSettingsProcedure = "/api.v2.UserService/ListUserSettings" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const ( // WorkspaceServiceGetWorkspaceProfileProcedure is the fully-qualified name of the // WorkspaceService's GetWorkspaceProfile RPC. WorkspaceServiceGetWorkspaceProfileProcedure = "/api.v2.WorkspaceService/GetWorkspaceProfile" // WorkspaceServiceGetWorkspaceSettingProcedure is the fully-qualified name of the // WorkspaceService's GetWorkspaceSetting RPC. WorkspaceServiceGetWorkspaceSettingProcedure = "/api.v2.WorkspaceService/GetWorkspaceSetting" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// AuthServiceName is the fully-qualified name of the AuthService service.
AuthServiceName = "api.v2.AuthService"
)
const ( // InboxServiceListInboxesProcedure is the fully-qualified name of the InboxService's ListInboxes // RPC. InboxServiceListInboxesProcedure = "/api.v2.InboxService/ListInboxes" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// InboxServiceName is the fully-qualified name of the InboxService service.
InboxServiceName = "api.v2.InboxService"
)
const (
// MarkdownServiceName is the fully-qualified name of the MarkdownService service.
MarkdownServiceName = "api.v2.MarkdownService"
)
const ( // MarkdownServiceParseMarkdownProcedure is the fully-qualified name of the MarkdownService's // ParseMarkdown RPC. MarkdownServiceParseMarkdownProcedure = "/api.v2.MarkdownService/ParseMarkdown" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// MemoServiceName is the fully-qualified name of the MemoService service.
MemoServiceName = "api.v2.MemoService"
)
const (
// UserServiceName is the fully-qualified name of the UserService service.
UserServiceName = "api.v2.UserService"
)
const (
// WorkspaceServiceName is the fully-qualified name of the WorkspaceService service.
WorkspaceServiceName = "api.v2.WorkspaceService"
)
Variables ¶
var File_api_v2_auth_proto protoreflect.FileDescriptor
var File_api_v2_inbox_proto protoreflect.FileDescriptor
var File_api_v2_markdown_proto protoreflect.FileDescriptor
var File_api_v2_memo_proto protoreflect.FileDescriptor
var File_api_v2_user_proto protoreflect.FileDescriptor
var File_api_v2_workspace_proto protoreflect.FileDescriptor
Functions ¶
func NewAuthServiceHandler ¶
func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewAuthServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewInboxServiceHandler ¶ added in v0.1.2
func NewInboxServiceHandler(svc InboxServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewInboxServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewMarkdownServiceHandler ¶
func NewMarkdownServiceHandler(svc MarkdownServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewMarkdownServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewMemoServiceHandler ¶
func NewMemoServiceHandler(svc MemoServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewMemoServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewUserServiceHandler ¶
func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewWorkspaceServiceHandler ¶
func NewWorkspaceServiceHandler(svc WorkspaceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewWorkspaceServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface {
// GetCurrentSession returns the current session information.
GetCurrentSession(context.Context, *connect.Request[GetCurrentSessionRequest]) (*connect.Response[GetCurrentSessionResponse], error)
// CreateSession authenticates a user and creates a new session.
// Returns the authenticated user information upon successful authentication.
CreateSession(context.Context, *connect.Request[CreateSessionRequest]) (*connect.Response[CreateSessionResponse], error)
}
AuthServiceClient is a client for the api.v2.AuthService service.
func NewAuthServiceClient ¶
func NewAuthServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthServiceClient
NewAuthServiceClient constructs a client for the api.v2.AuthService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type AuthServiceHandler ¶
type AuthServiceHandler interface {
// GetCurrentSession returns the current session information.
GetCurrentSession(context.Context, *connect.Request[GetCurrentSessionRequest]) (*connect.Response[GetCurrentSessionResponse], error)
// CreateSession authenticates a user and creates a new session.
// Returns the authenticated user information upon successful authentication.
CreateSession(context.Context, *connect.Request[CreateSessionRequest]) (*connect.Response[CreateSessionResponse], error)
}
AuthServiceHandler is an implementation of the api.v2.AuthService service.
type CreateMemoRequest ¶
type CreateMemoRequest struct {
// Required. The memo to create.
Memo *model.Memo `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
// Optional. The memo ID to use for this memo.
// If empty, a unique ID will be generated.
MemoId string `protobuf:"bytes,2,opt,name=memo_id,json=memoId,proto3" json:"memo_id,omitempty"`
// Optional. If set, validate the request but don't actually create the memo.
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// Optional. An idempotency token.
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateMemoRequest) Descriptor
deprecated
func (*CreateMemoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMemoRequest.ProtoReflect.Descriptor instead.
func (*CreateMemoRequest) GetMemo ¶
func (x *CreateMemoRequest) GetMemo() *model.Memo
func (*CreateMemoRequest) GetMemoId ¶
func (x *CreateMemoRequest) GetMemoId() string
func (*CreateMemoRequest) GetRequestId ¶
func (x *CreateMemoRequest) GetRequestId() string
func (*CreateMemoRequest) GetValidateOnly ¶
func (x *CreateMemoRequest) GetValidateOnly() bool
func (*CreateMemoRequest) ProtoMessage ¶
func (*CreateMemoRequest) ProtoMessage()
func (*CreateMemoRequest) ProtoReflect ¶
func (x *CreateMemoRequest) ProtoReflect() protoreflect.Message
func (*CreateMemoRequest) Reset ¶
func (x *CreateMemoRequest) Reset()
func (*CreateMemoRequest) String ¶
func (x *CreateMemoRequest) String() string
type CreateSessionRequest ¶
type CreateSessionRequest struct {
// Provide one authentication method (username/password or SSO).
// Required field to specify the authentication method.
//
// Types that are valid to be assigned to Credentials:
//
// *CreateSessionRequest_PasswordCredentials_
// *CreateSessionRequest_SsoCredentials
Credentials isCreateSessionRequest_Credentials `protobuf_oneof:"credentials"`
// contains filtered or unexported fields
}
func (*CreateSessionRequest) Descriptor
deprecated
func (*CreateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.
func (*CreateSessionRequest) GetCredentials ¶
func (x *CreateSessionRequest) GetCredentials() isCreateSessionRequest_Credentials
func (*CreateSessionRequest) GetPasswordCredentials ¶
func (x *CreateSessionRequest) GetPasswordCredentials() *CreateSessionRequest_PasswordCredentials
func (*CreateSessionRequest) GetSsoCredentials ¶
func (x *CreateSessionRequest) GetSsoCredentials() *CreateSessionRequest_SSOCredentials
func (*CreateSessionRequest) ProtoMessage ¶
func (*CreateSessionRequest) ProtoMessage()
func (*CreateSessionRequest) ProtoReflect ¶
func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
func (*CreateSessionRequest) Reset ¶
func (x *CreateSessionRequest) Reset()
func (*CreateSessionRequest) String ¶
func (x *CreateSessionRequest) String() string
type CreateSessionRequest_PasswordCredentials ¶
type CreateSessionRequest_PasswordCredentials struct {
// The username to sign in with.
// Required field for password-based authentication.
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// The password to sign in with.
// Required field for password-based authentication.
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}
Nested message for password-based authentication credentials.
func (*CreateSessionRequest_PasswordCredentials) Descriptor
deprecated
func (*CreateSessionRequest_PasswordCredentials) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionRequest_PasswordCredentials.ProtoReflect.Descriptor instead.
func (*CreateSessionRequest_PasswordCredentials) GetPassword ¶
func (x *CreateSessionRequest_PasswordCredentials) GetPassword() string
func (*CreateSessionRequest_PasswordCredentials) GetUsername ¶
func (x *CreateSessionRequest_PasswordCredentials) GetUsername() string
func (*CreateSessionRequest_PasswordCredentials) ProtoMessage ¶
func (*CreateSessionRequest_PasswordCredentials) ProtoMessage()
func (*CreateSessionRequest_PasswordCredentials) ProtoReflect ¶
func (x *CreateSessionRequest_PasswordCredentials) ProtoReflect() protoreflect.Message
func (*CreateSessionRequest_PasswordCredentials) Reset ¶
func (x *CreateSessionRequest_PasswordCredentials) Reset()
func (*CreateSessionRequest_PasswordCredentials) String ¶
func (x *CreateSessionRequest_PasswordCredentials) String() string
type CreateSessionRequest_PasswordCredentials_ ¶
type CreateSessionRequest_PasswordCredentials_ struct {
// Username and password authentication method.
PasswordCredentials *CreateSessionRequest_PasswordCredentials `protobuf:"bytes,1,opt,name=password_credentials,json=passwordCredentials,proto3,oneof"`
}
type CreateSessionRequest_SSOCredentials ¶
type CreateSessionRequest_SSOCredentials struct {
// The ID of the SSO provider.
// Required field to identify the SSO provider.
IdpId int32 `protobuf:"varint,1,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"`
// The authorization code from the SSO provider.
// Required field for completing the SSO flow.
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
// The redirect URI used in the SSO flow.
// Required field for security validation.
RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
// contains filtered or unexported fields
}
Nested message for SSO authentication credentials.
func (*CreateSessionRequest_SSOCredentials) Descriptor
deprecated
func (*CreateSessionRequest_SSOCredentials) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionRequest_SSOCredentials.ProtoReflect.Descriptor instead.
func (*CreateSessionRequest_SSOCredentials) GetCode ¶
func (x *CreateSessionRequest_SSOCredentials) GetCode() string
func (*CreateSessionRequest_SSOCredentials) GetIdpId ¶
func (x *CreateSessionRequest_SSOCredentials) GetIdpId() int32
func (*CreateSessionRequest_SSOCredentials) GetRedirectUri ¶
func (x *CreateSessionRequest_SSOCredentials) GetRedirectUri() string
func (*CreateSessionRequest_SSOCredentials) ProtoMessage ¶
func (*CreateSessionRequest_SSOCredentials) ProtoMessage()
func (*CreateSessionRequest_SSOCredentials) ProtoReflect ¶
func (x *CreateSessionRequest_SSOCredentials) ProtoReflect() protoreflect.Message
func (*CreateSessionRequest_SSOCredentials) Reset ¶
func (x *CreateSessionRequest_SSOCredentials) Reset()
func (*CreateSessionRequest_SSOCredentials) String ¶
func (x *CreateSessionRequest_SSOCredentials) String() string
type CreateSessionRequest_SsoCredentials ¶
type CreateSessionRequest_SsoCredentials struct {
// SSO provider authentication method.
SsoCredentials *CreateSessionRequest_SSOCredentials `protobuf:"bytes,2,opt,name=sso_credentials,json=ssoCredentials,proto3,oneof"`
}
type CreateSessionResponse ¶
type CreateSessionResponse struct {
// The authenticated user information.
User *model.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// Last time the session was accessed.
// Used for sliding expiration calculation (last_accessed_time + 2 weeks).
LastAccessedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_accessed_at,json=lastAccessedAt,proto3" json:"last_accessed_at,omitempty"`
// contains filtered or unexported fields
}
func (*CreateSessionResponse) Descriptor
deprecated
func (*CreateSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead.
func (*CreateSessionResponse) GetLastAccessedAt ¶
func (x *CreateSessionResponse) GetLastAccessedAt() *timestamppb.Timestamp
func (*CreateSessionResponse) GetUser ¶
func (x *CreateSessionResponse) GetUser() *model.User
func (*CreateSessionResponse) ProtoMessage ¶
func (*CreateSessionResponse) ProtoMessage()
func (*CreateSessionResponse) ProtoReflect ¶
func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message
func (*CreateSessionResponse) Reset ¶
func (x *CreateSessionResponse) Reset()
func (*CreateSessionResponse) String ¶
func (x *CreateSessionResponse) String() string
type CreateUserRequest ¶
type CreateUserRequest struct {
// Required. The user to create.
User *model.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() *model.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 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 GetAuthStatusResponse ¶
type GetAuthStatusResponse struct {
User *model.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// contains filtered or unexported fields
}
func (*GetAuthStatusResponse) Descriptor
deprecated
func (*GetAuthStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthStatusResponse.ProtoReflect.Descriptor instead.
func (*GetAuthStatusResponse) GetUser ¶
func (x *GetAuthStatusResponse) GetUser() *model.User
func (*GetAuthStatusResponse) ProtoMessage ¶
func (*GetAuthStatusResponse) ProtoMessage()
func (*GetAuthStatusResponse) ProtoReflect ¶
func (x *GetAuthStatusResponse) ProtoReflect() protoreflect.Message
func (*GetAuthStatusResponse) Reset ¶
func (x *GetAuthStatusResponse) Reset()
func (*GetAuthStatusResponse) String ¶
func (x *GetAuthStatusResponse) String() string
type GetCurrentSessionRequest ¶
type GetCurrentSessionRequest struct {
// contains filtered or unexported fields
}
func (*GetCurrentSessionRequest) Descriptor
deprecated
func (*GetCurrentSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentSessionRequest.ProtoReflect.Descriptor instead.
func (*GetCurrentSessionRequest) ProtoMessage ¶
func (*GetCurrentSessionRequest) ProtoMessage()
func (*GetCurrentSessionRequest) ProtoReflect ¶
func (x *GetCurrentSessionRequest) ProtoReflect() protoreflect.Message
func (*GetCurrentSessionRequest) Reset ¶
func (x *GetCurrentSessionRequest) Reset()
func (*GetCurrentSessionRequest) String ¶
func (x *GetCurrentSessionRequest) String() string
type GetCurrentSessionResponse ¶
type GetCurrentSessionResponse struct {
User *model.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// Last time the session was accessed.
// Used for sliding expiration calculation (last_accessed_time + 2 weeks).
LastAccessedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_accessed_at,json=lastAccessedAt,proto3" json:"last_accessed_at,omitempty"`
// contains filtered or unexported fields
}
func (*GetCurrentSessionResponse) Descriptor
deprecated
func (*GetCurrentSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentSessionResponse.ProtoReflect.Descriptor instead.
func (*GetCurrentSessionResponse) GetLastAccessedAt ¶
func (x *GetCurrentSessionResponse) GetLastAccessedAt() *timestamppb.Timestamp
func (*GetCurrentSessionResponse) GetUser ¶
func (x *GetCurrentSessionResponse) GetUser() *model.User
func (*GetCurrentSessionResponse) ProtoMessage ¶
func (*GetCurrentSessionResponse) ProtoMessage()
func (*GetCurrentSessionResponse) ProtoReflect ¶
func (x *GetCurrentSessionResponse) ProtoReflect() protoreflect.Message
func (*GetCurrentSessionResponse) Reset ¶
func (x *GetCurrentSessionResponse) Reset()
func (*GetCurrentSessionResponse) String ¶
func (x *GetCurrentSessionResponse) String() string
type GetMemoRequest ¶
type GetMemoRequest struct {
// Required. The resource name of the memo.
// Format: memos/{memo}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The fields to return in the response.
// If not specified, all fields are returned.
ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
// contains filtered or unexported fields
}
func (*GetMemoRequest) Descriptor
deprecated
func (*GetMemoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMemoRequest.ProtoReflect.Descriptor instead.
func (*GetMemoRequest) GetName ¶
func (x *GetMemoRequest) GetName() string
func (*GetMemoRequest) GetReadMask ¶
func (x *GetMemoRequest) GetReadMask() *fieldmaskpb.FieldMask
func (*GetMemoRequest) ProtoMessage ¶
func (*GetMemoRequest) ProtoMessage()
func (*GetMemoRequest) ProtoReflect ¶
func (x *GetMemoRequest) ProtoReflect() protoreflect.Message
func (*GetMemoRequest) Reset ¶
func (x *GetMemoRequest) Reset()
func (*GetMemoRequest) String ¶
func (x *GetMemoRequest) String() string
type GetUserSettingRequest ¶ added in v0.1.1
type GetUserSettingRequest struct {
// Required. The resource name of the user setting.
// Format: users/{user}/settings/{setting}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserSettingRequest) Descriptor
deprecated
added in
v0.1.1
func (*GetUserSettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserSettingRequest.ProtoReflect.Descriptor instead.
func (*GetUserSettingRequest) GetName ¶ added in v0.1.1
func (x *GetUserSettingRequest) GetName() string
func (*GetUserSettingRequest) ProtoMessage ¶ added in v0.1.1
func (*GetUserSettingRequest) ProtoMessage()
func (*GetUserSettingRequest) ProtoReflect ¶ added in v0.1.1
func (x *GetUserSettingRequest) ProtoReflect() protoreflect.Message
func (*GetUserSettingRequest) Reset ¶ added in v0.1.1
func (x *GetUserSettingRequest) Reset()
func (*GetUserSettingRequest) String ¶ added in v0.1.1
func (x *GetUserSettingRequest) String() string
type GetUserStatsRequest ¶
type GetUserStatsRequest struct {
// Required. The resource name of the user.
// Format: users/{user}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserStatsRequest) Descriptor
deprecated
func (*GetUserStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserStatsRequest.ProtoReflect.Descriptor instead.
func (*GetUserStatsRequest) GetName ¶
func (x *GetUserStatsRequest) GetName() string
func (*GetUserStatsRequest) ProtoMessage ¶
func (*GetUserStatsRequest) ProtoMessage()
func (*GetUserStatsRequest) ProtoReflect ¶
func (x *GetUserStatsRequest) ProtoReflect() protoreflect.Message
func (*GetUserStatsRequest) Reset ¶
func (x *GetUserStatsRequest) Reset()
func (*GetUserStatsRequest) String ¶
func (x *GetUserStatsRequest) String() string
type GetWorkspaceProfileRequest ¶
type GetWorkspaceProfileRequest struct {
// contains filtered or unexported fields
}
Request for workspace profile.
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 {
// The resource name of the workspace setting.
// Format: workspace/settings/{setting}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request message for GetWorkspaceSetting method.
func (*GetWorkspaceSettingRequest) Descriptor
deprecated
func (*GetWorkspaceSettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWorkspaceSettingRequest.ProtoReflect.Descriptor instead.
func (*GetWorkspaceSettingRequest) GetName ¶
func (x *GetWorkspaceSettingRequest) GetName() string
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 InboxServiceClient ¶ added in v0.1.2
type InboxServiceClient interface {
// ListInboxes lists inboxes for a user.
ListInboxes(context.Context, *connect.Request[ListInboxesRequest]) (*connect.Response[ListInboxesResponse], error)
}
InboxServiceClient is a client for the api.v2.InboxService service.
func NewInboxServiceClient ¶ added in v0.1.2
func NewInboxServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) InboxServiceClient
NewInboxServiceClient constructs a client for the api.v2.InboxService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type InboxServiceHandler ¶ added in v0.1.2
type InboxServiceHandler interface {
// ListInboxes lists inboxes for a user.
ListInboxes(context.Context, *connect.Request[ListInboxesRequest]) (*connect.Response[ListInboxesResponse], error)
}
InboxServiceHandler is an implementation of the api.v2.InboxService service.
type ListInboxesRequest ¶ added in v0.1.2
type ListInboxesRequest struct {
// Required. The parent resource whose inboxes will be listed.
// Format: users/{user}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of inboxes to return.
// The service may return fewer than this value.
// If unspecified, at most 50 inboxes will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListInboxes` call.
// Provide this to retrieve the subsequent page.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filter to apply to the list results.
// Example: "status=UNREAD" or "type=MEMO_COMMENT"
// Supported operators: =, !=
// Supported fields: status, type, sender, create_time
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The order to sort results by.
// Example: "create_time desc" or "status asc"
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}
func (*ListInboxesRequest) Descriptor
deprecated
added in
v0.1.2
func (*ListInboxesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListInboxesRequest.ProtoReflect.Descriptor instead.
func (*ListInboxesRequest) GetFilter ¶ added in v0.1.2
func (x *ListInboxesRequest) GetFilter() string
func (*ListInboxesRequest) GetOrderBy ¶ added in v0.1.2
func (x *ListInboxesRequest) GetOrderBy() string
func (*ListInboxesRequest) GetPageSize ¶ added in v0.1.2
func (x *ListInboxesRequest) GetPageSize() int32
func (*ListInboxesRequest) GetPageToken ¶ added in v0.1.2
func (x *ListInboxesRequest) GetPageToken() string
func (*ListInboxesRequest) GetParent ¶ added in v0.1.2
func (x *ListInboxesRequest) GetParent() string
func (*ListInboxesRequest) ProtoMessage ¶ added in v0.1.2
func (*ListInboxesRequest) ProtoMessage()
func (*ListInboxesRequest) ProtoReflect ¶ added in v0.1.2
func (x *ListInboxesRequest) ProtoReflect() protoreflect.Message
func (*ListInboxesRequest) Reset ¶ added in v0.1.2
func (x *ListInboxesRequest) Reset()
func (*ListInboxesRequest) String ¶ added in v0.1.2
func (x *ListInboxesRequest) String() string
type ListInboxesResponse ¶ added in v0.1.2
type ListInboxesResponse struct {
// The list of inboxes.
Inboxes []*model.Inbox `protobuf:"bytes,1,rep,name=inboxes,proto3" json:"inboxes,omitempty"`
// A token that can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The total count of inboxes (may be approximate).
TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
// contains filtered or unexported fields
}
func (*ListInboxesResponse) Descriptor
deprecated
added in
v0.1.2
func (*ListInboxesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListInboxesResponse.ProtoReflect.Descriptor instead.
func (*ListInboxesResponse) GetInboxes ¶ added in v0.1.2
func (x *ListInboxesResponse) GetInboxes() []*model.Inbox
func (*ListInboxesResponse) GetNextPageToken ¶ added in v0.1.2
func (x *ListInboxesResponse) GetNextPageToken() string
func (*ListInboxesResponse) GetTotalSize ¶ added in v0.1.2
func (x *ListInboxesResponse) GetTotalSize() int32
func (*ListInboxesResponse) ProtoMessage ¶ added in v0.1.2
func (*ListInboxesResponse) ProtoMessage()
func (*ListInboxesResponse) ProtoReflect ¶ added in v0.1.2
func (x *ListInboxesResponse) ProtoReflect() protoreflect.Message
func (*ListInboxesResponse) Reset ¶ added in v0.1.2
func (x *ListInboxesResponse) Reset()
func (*ListInboxesResponse) String ¶ added in v0.1.2
func (x *ListInboxesResponse) String() string
type ListMemosRequest ¶
type ListMemosRequest struct {
// Optional. The maximum number of memos to return.
// The service may return fewer than this value.
// If unspecified, at most 50 memos will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListMemos` call.
// Provide this to retrieve the subsequent page.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. The state of the memos to list.
// Default to `NORMAL`. Set to `ARCHIVED` to list archived memos.
State model.State `protobuf:"varint,3,opt,name=state,proto3,enum=model.State" json:"state,omitempty"`
// Optional. The order to sort results by.
// Default to "display_time desc".
// Example: "display_time desc" or "create_time asc"
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Optional. Filter to apply to the list results.
// Filter is a CEL expression to filter memos.
// Refer to `Shortcut.filter`.
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. If true, show deleted memos in the response.
ShowDeleted bool `protobuf:"varint,6,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
// contains filtered or unexported fields
}
func (*ListMemosRequest) Descriptor
deprecated
func (*ListMemosRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMemosRequest.ProtoReflect.Descriptor instead.
func (*ListMemosRequest) GetFilter ¶
func (x *ListMemosRequest) GetFilter() string
func (*ListMemosRequest) GetOrderBy ¶
func (x *ListMemosRequest) GetOrderBy() string
func (*ListMemosRequest) GetPageSize ¶
func (x *ListMemosRequest) GetPageSize() int32
func (*ListMemosRequest) GetPageToken ¶
func (x *ListMemosRequest) GetPageToken() string
func (*ListMemosRequest) GetShowDeleted ¶
func (x *ListMemosRequest) GetShowDeleted() bool
func (*ListMemosRequest) GetState ¶
func (x *ListMemosRequest) GetState() model.State
func (*ListMemosRequest) ProtoMessage ¶
func (*ListMemosRequest) ProtoMessage()
func (*ListMemosRequest) ProtoReflect ¶
func (x *ListMemosRequest) ProtoReflect() protoreflect.Message
func (*ListMemosRequest) Reset ¶
func (x *ListMemosRequest) Reset()
func (*ListMemosRequest) String ¶
func (x *ListMemosRequest) String() string
type ListMemosResponse ¶
type ListMemosResponse struct {
// The list of memos.
Memos []*model.Memo `protobuf:"bytes,1,rep,name=memos,proto3" json:"memos,omitempty"`
// A token that can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The total count of memos (may be approximate).
TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
// contains filtered or unexported fields
}
func (*ListMemosResponse) Descriptor
deprecated
func (*ListMemosResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMemosResponse.ProtoReflect.Descriptor instead.
func (*ListMemosResponse) GetMemos ¶
func (x *ListMemosResponse) GetMemos() []*model.Memo
func (*ListMemosResponse) GetNextPageToken ¶
func (x *ListMemosResponse) GetNextPageToken() string
func (*ListMemosResponse) GetTotalSize ¶
func (x *ListMemosResponse) GetTotalSize() int32
func (*ListMemosResponse) ProtoMessage ¶
func (*ListMemosResponse) ProtoMessage()
func (*ListMemosResponse) ProtoReflect ¶
func (x *ListMemosResponse) ProtoReflect() protoreflect.Message
func (*ListMemosResponse) Reset ¶
func (x *ListMemosResponse) Reset()
func (*ListMemosResponse) String ¶
func (x *ListMemosResponse) String() string
type ListUserSettingsRequest ¶ added in v0.1.1
type ListUserSettingsRequest struct {
// Required. The parent resource whose settings will be listed.
// Format: users/{user}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of settings to return.
// The service may return fewer than this value.
// If unspecified, at most 50 settings will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListUserSettings` call.
// Provide this to retrieve the subsequent page.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for ListUserSettings method.
func (*ListUserSettingsRequest) Descriptor
deprecated
added in
v0.1.1
func (*ListUserSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserSettingsRequest.ProtoReflect.Descriptor instead.
func (*ListUserSettingsRequest) GetPageSize ¶ added in v0.1.1
func (x *ListUserSettingsRequest) GetPageSize() int32
func (*ListUserSettingsRequest) GetPageToken ¶ added in v0.1.1
func (x *ListUserSettingsRequest) GetPageToken() string
func (*ListUserSettingsRequest) GetParent ¶ added in v0.1.1
func (x *ListUserSettingsRequest) GetParent() string
func (*ListUserSettingsRequest) ProtoMessage ¶ added in v0.1.1
func (*ListUserSettingsRequest) ProtoMessage()
func (*ListUserSettingsRequest) ProtoReflect ¶ added in v0.1.1
func (x *ListUserSettingsRequest) ProtoReflect() protoreflect.Message
func (*ListUserSettingsRequest) Reset ¶ added in v0.1.1
func (x *ListUserSettingsRequest) Reset()
func (*ListUserSettingsRequest) String ¶ added in v0.1.1
func (x *ListUserSettingsRequest) String() string
type ListUserSettingsResponse ¶ added in v0.1.1
type ListUserSettingsResponse struct {
// The list of user settings.
Settings []*model.UserSetting `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"`
// A token that can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The total count of settings (may be approximate).
TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
// contains filtered or unexported fields
}
Response message for ListUserSettings method.
func (*ListUserSettingsResponse) Descriptor
deprecated
added in
v0.1.1
func (*ListUserSettingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUserSettingsResponse.ProtoReflect.Descriptor instead.
func (*ListUserSettingsResponse) GetNextPageToken ¶ added in v0.1.1
func (x *ListUserSettingsResponse) GetNextPageToken() string
func (*ListUserSettingsResponse) GetSettings ¶ added in v0.1.1
func (x *ListUserSettingsResponse) GetSettings() []*model.UserSetting
func (*ListUserSettingsResponse) GetTotalSize ¶ added in v0.1.1
func (x *ListUserSettingsResponse) GetTotalSize() int32
func (*ListUserSettingsResponse) ProtoMessage ¶ added in v0.1.1
func (*ListUserSettingsResponse) ProtoMessage()
func (*ListUserSettingsResponse) ProtoReflect ¶ added in v0.1.1
func (x *ListUserSettingsResponse) ProtoReflect() protoreflect.Message
func (*ListUserSettingsResponse) Reset ¶ added in v0.1.1
func (x *ListUserSettingsResponse) Reset()
func (*ListUserSettingsResponse) String ¶ added in v0.1.1
func (x *ListUserSettingsResponse) String() string
type MarkdownServiceClient ¶
type MarkdownServiceClient interface {
// ParseMarkdown parses the given markdown content and returns a list of nodes.
// This is a utility method that transforms markdown text into structured nodes.
ParseMarkdown(context.Context, *connect.Request[ParseMarkdownRequest]) (*connect.Response[ParseMarkdownResponse], error)
}
MarkdownServiceClient is a client for the api.v2.MarkdownService service.
func NewMarkdownServiceClient ¶
func NewMarkdownServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MarkdownServiceClient
NewMarkdownServiceClient constructs a client for the api.v2.MarkdownService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type MarkdownServiceHandler ¶
type MarkdownServiceHandler interface {
// ParseMarkdown parses the given markdown content and returns a list of nodes.
// This is a utility method that transforms markdown text into structured nodes.
ParseMarkdown(context.Context, *connect.Request[ParseMarkdownRequest]) (*connect.Response[ParseMarkdownResponse], error)
}
MarkdownServiceHandler is an implementation of the api.v2.MarkdownService service.
type MemoServiceClient ¶
type MemoServiceClient interface {
// CreateMemo creates a memo.
CreateMemo(context.Context, *connect.Request[CreateMemoRequest]) (*connect.Response[model.Memo], error)
// ListMemos lists memos with pagination and filter.
ListMemos(context.Context, *connect.Request[ListMemosRequest]) (*connect.Response[ListMemosResponse], error)
// GetMemo gets a memo.
GetMemo(context.Context, *connect.Request[GetMemoRequest]) (*connect.Response[model.Memo], error)
}
MemoServiceClient is a client for the api.v2.MemoService service.
func NewMemoServiceClient ¶
func NewMemoServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MemoServiceClient
NewMemoServiceClient constructs a client for the api.v2.MemoService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type MemoServiceHandler ¶
type MemoServiceHandler interface {
// CreateMemo creates a memo.
CreateMemo(context.Context, *connect.Request[CreateMemoRequest]) (*connect.Response[model.Memo], error)
// ListMemos lists memos with pagination and filter.
ListMemos(context.Context, *connect.Request[ListMemosRequest]) (*connect.Response[ListMemosResponse], error)
// GetMemo gets a memo.
GetMemo(context.Context, *connect.Request[GetMemoRequest]) (*connect.Response[model.Memo], error)
}
MemoServiceHandler is an implementation of the api.v2.MemoService service.
type ParseMarkdownRequest ¶
type ParseMarkdownRequest struct {
// The markdown content to parse.
Markdown string `protobuf:"bytes,1,opt,name=markdown,proto3" json:"markdown,omitempty"`
// contains filtered or unexported fields
}
func (*ParseMarkdownRequest) Descriptor
deprecated
func (*ParseMarkdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ParseMarkdownRequest.ProtoReflect.Descriptor instead.
func (*ParseMarkdownRequest) GetMarkdown ¶
func (x *ParseMarkdownRequest) GetMarkdown() string
func (*ParseMarkdownRequest) ProtoMessage ¶
func (*ParseMarkdownRequest) ProtoMessage()
func (*ParseMarkdownRequest) ProtoReflect ¶
func (x *ParseMarkdownRequest) ProtoReflect() protoreflect.Message
func (*ParseMarkdownRequest) Reset ¶
func (x *ParseMarkdownRequest) Reset()
func (*ParseMarkdownRequest) String ¶
func (x *ParseMarkdownRequest) String() string
type ParseMarkdownResponse ¶
type ParseMarkdownResponse struct {
// The parsed markdown nodes.
Nodes []*model.Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
// contains filtered or unexported fields
}
func (*ParseMarkdownResponse) Descriptor
deprecated
func (*ParseMarkdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ParseMarkdownResponse.ProtoReflect.Descriptor instead.
func (*ParseMarkdownResponse) GetNodes ¶
func (x *ParseMarkdownResponse) GetNodes() []*model.Node
func (*ParseMarkdownResponse) ProtoMessage ¶
func (*ParseMarkdownResponse) ProtoMessage()
func (*ParseMarkdownResponse) ProtoReflect ¶
func (x *ParseMarkdownResponse) ProtoReflect() protoreflect.Message
func (*ParseMarkdownResponse) Reset ¶
func (x *ParseMarkdownResponse) Reset()
func (*ParseMarkdownResponse) String ¶
func (x *ParseMarkdownResponse) String() string
type SignInRequest ¶
type SignInRequest struct {
// The username to sign in with.
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// The password to sign in with.
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// Whether the session should never expire.
NeverExpire bool `protobuf:"varint,3,opt,name=never_expire,json=neverExpire,proto3" json:"never_expire,omitempty"`
// contains filtered or unexported fields
}
func (*SignInRequest) Descriptor
deprecated
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetNeverExpire ¶
func (x *SignInRequest) GetNeverExpire() bool
func (*SignInRequest) GetPassword ¶
func (x *SignInRequest) GetPassword() string
func (*SignInRequest) GetUsername ¶
func (x *SignInRequest) GetUsername() 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 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 {
// The username to sign up with.
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// The password to sign up with.
Password string `protobuf:"bytes,2,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) GetPassword ¶
func (x *SignUpRequest) GetPassword() string
func (*SignUpRequest) GetUsername ¶
func (x *SignUpRequest) GetUsername() 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 UnimplementedAuthServiceHandler ¶
type UnimplementedAuthServiceHandler struct{}
UnimplementedAuthServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedAuthServiceHandler) CreateSession ¶
func (UnimplementedAuthServiceHandler) CreateSession(context.Context, *connect.Request[CreateSessionRequest]) (*connect.Response[CreateSessionResponse], error)
func (UnimplementedAuthServiceHandler) GetCurrentSession ¶
func (UnimplementedAuthServiceHandler) GetCurrentSession(context.Context, *connect.Request[GetCurrentSessionRequest]) (*connect.Response[GetCurrentSessionResponse], error)
type UnimplementedInboxServiceHandler ¶ added in v0.1.2
type UnimplementedInboxServiceHandler struct{}
UnimplementedInboxServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedInboxServiceHandler) ListInboxes ¶ added in v0.1.2
func (UnimplementedInboxServiceHandler) ListInboxes(context.Context, *connect.Request[ListInboxesRequest]) (*connect.Response[ListInboxesResponse], error)
type UnimplementedMarkdownServiceHandler ¶
type UnimplementedMarkdownServiceHandler struct{}
UnimplementedMarkdownServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedMarkdownServiceHandler) ParseMarkdown ¶
func (UnimplementedMarkdownServiceHandler) ParseMarkdown(context.Context, *connect.Request[ParseMarkdownRequest]) (*connect.Response[ParseMarkdownResponse], error)
type UnimplementedMemoServiceHandler ¶
type UnimplementedMemoServiceHandler struct{}
UnimplementedMemoServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedMemoServiceHandler) CreateMemo ¶
func (UnimplementedMemoServiceHandler) ListMemos ¶
func (UnimplementedMemoServiceHandler) ListMemos(context.Context, *connect.Request[ListMemosRequest]) (*connect.Response[ListMemosResponse], error)
type UnimplementedUserServiceHandler ¶
type UnimplementedUserServiceHandler struct{}
UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedUserServiceHandler) CreateUser ¶
func (UnimplementedUserServiceHandler) GetUserSetting ¶ added in v0.1.1
func (UnimplementedUserServiceHandler) GetUserSetting(context.Context, *connect.Request[GetUserSettingRequest]) (*connect.Response[model.UserSetting], error)
func (UnimplementedUserServiceHandler) GetUserStats ¶
func (UnimplementedUserServiceHandler) GetUserStats(context.Context, *connect.Request[GetUserStatsRequest]) (*connect.Response[UserStats], error)
func (UnimplementedUserServiceHandler) ListUserSettings ¶ added in v0.1.1
func (UnimplementedUserServiceHandler) ListUserSettings(context.Context, *connect.Request[ListUserSettingsRequest]) (*connect.Response[ListUserSettingsResponse], error)
type UnimplementedWorkspaceServiceHandler ¶
type UnimplementedWorkspaceServiceHandler struct{}
UnimplementedWorkspaceServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedWorkspaceServiceHandler) GetWorkspaceProfile ¶
func (UnimplementedWorkspaceServiceHandler) GetWorkspaceProfile(context.Context, *connect.Request[GetWorkspaceProfileRequest]) (*connect.Response[model.WorkspaceProfile], error)
func (UnimplementedWorkspaceServiceHandler) GetWorkspaceSetting ¶
func (UnimplementedWorkspaceServiceHandler) GetWorkspaceSetting(context.Context, *connect.Request[GetWorkspaceSettingRequest]) (*connect.Response[model.WorkspaceSetting], error)
type UserServiceClient ¶
type UserServiceClient interface {
// CreateUser creates a new user.
CreateUser(context.Context, *connect.Request[CreateUserRequest]) (*connect.Response[model.User], error)
// GetUserStats returns statistics for a specific user.
GetUserStats(context.Context, *connect.Request[GetUserStatsRequest]) (*connect.Response[UserStats], error)
// GetUserSetting returns the user setting.
GetUserSetting(context.Context, *connect.Request[GetUserSettingRequest]) (*connect.Response[model.UserSetting], error)
// ListUserSettings returns a list of user settings.
ListUserSettings(context.Context, *connect.Request[ListUserSettingsRequest]) (*connect.Response[ListUserSettingsResponse], error)
}
UserServiceClient is a client for the api.v2.UserService service.
func NewUserServiceClient ¶
func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient
NewUserServiceClient constructs a client for the api.v2.UserService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type UserServiceHandler ¶
type UserServiceHandler interface {
// CreateUser creates a new user.
CreateUser(context.Context, *connect.Request[CreateUserRequest]) (*connect.Response[model.User], error)
// GetUserStats returns statistics for a specific user.
GetUserStats(context.Context, *connect.Request[GetUserStatsRequest]) (*connect.Response[UserStats], error)
// GetUserSetting returns the user setting.
GetUserSetting(context.Context, *connect.Request[GetUserSettingRequest]) (*connect.Response[model.UserSetting], error)
// ListUserSettings returns a list of user settings.
ListUserSettings(context.Context, *connect.Request[ListUserSettingsRequest]) (*connect.Response[ListUserSettingsResponse], error)
}
UserServiceHandler is an implementation of the api.v2.UserService service.
type UserStats ¶
type UserStats struct {
// The resource name of the user whose stats these are.
// Format: users/{user}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The timestamps when the memos were displayed.
MemoDisplayTimestamps []*timestamppb.Timestamp `` /* 126-byte string literal not displayed */
// The stats of memo types.
MemoTypeStats *UserStats_MemoTypeStats `protobuf:"bytes,3,opt,name=memo_type_stats,json=memoTypeStats,proto3" json:"memo_type_stats,omitempty"`
// The count of tags.
TagCount map[string]int32 `` /* 160-byte string literal not displayed */
// The pinned memos of the user.
PinnedMemos []string `protobuf:"bytes,5,rep,name=pinned_memos,json=pinnedMemos,proto3" json:"pinned_memos,omitempty"`
// Total memo count.
TotalMemoCount int32 `protobuf:"varint,6,opt,name=total_memo_count,json=totalMemoCount,proto3" json:"total_memo_count,omitempty"`
// contains filtered or unexported fields
}
User statistics messages
func (*UserStats) Descriptor
deprecated
func (*UserStats) GetMemoDisplayTimestamps ¶
func (x *UserStats) GetMemoDisplayTimestamps() []*timestamppb.Timestamp
func (*UserStats) GetMemoTypeStats ¶
func (x *UserStats) GetMemoTypeStats() *UserStats_MemoTypeStats
func (*UserStats) GetPinnedMemos ¶
func (*UserStats) GetTagCount ¶
func (*UserStats) GetTotalMemoCount ¶
func (*UserStats) ProtoMessage ¶
func (*UserStats) ProtoMessage()
func (*UserStats) ProtoReflect ¶
func (x *UserStats) ProtoReflect() protoreflect.Message
type UserStats_MemoTypeStats ¶
type UserStats_MemoTypeStats struct {
LinkCount int32 `protobuf:"varint,1,opt,name=link_count,json=linkCount,proto3" json:"link_count,omitempty"`
CodeCount int32 `protobuf:"varint,2,opt,name=code_count,json=codeCount,proto3" json:"code_count,omitempty"`
TodoCount int32 `protobuf:"varint,3,opt,name=todo_count,json=todoCount,proto3" json:"todo_count,omitempty"`
UndoCount int32 `protobuf:"varint,4,opt,name=undo_count,json=undoCount,proto3" json:"undo_count,omitempty"`
// contains filtered or unexported fields
}
Memo type statistics.
func (*UserStats_MemoTypeStats) Descriptor
deprecated
func (*UserStats_MemoTypeStats) Descriptor() ([]byte, []int)
Deprecated: Use UserStats_MemoTypeStats.ProtoReflect.Descriptor instead.
func (*UserStats_MemoTypeStats) GetCodeCount ¶
func (x *UserStats_MemoTypeStats) GetCodeCount() int32
func (*UserStats_MemoTypeStats) GetLinkCount ¶
func (x *UserStats_MemoTypeStats) GetLinkCount() int32
func (*UserStats_MemoTypeStats) GetTodoCount ¶
func (x *UserStats_MemoTypeStats) GetTodoCount() int32
func (*UserStats_MemoTypeStats) GetUndoCount ¶
func (x *UserStats_MemoTypeStats) GetUndoCount() int32
func (*UserStats_MemoTypeStats) ProtoMessage ¶
func (*UserStats_MemoTypeStats) ProtoMessage()
func (*UserStats_MemoTypeStats) ProtoReflect ¶
func (x *UserStats_MemoTypeStats) ProtoReflect() protoreflect.Message
func (*UserStats_MemoTypeStats) Reset ¶
func (x *UserStats_MemoTypeStats) Reset()
func (*UserStats_MemoTypeStats) String ¶
func (x *UserStats_MemoTypeStats) String() string
type WorkspaceServiceClient ¶
type WorkspaceServiceClient interface {
// Gets the workspace profile.
GetWorkspaceProfile(context.Context, *connect.Request[GetWorkspaceProfileRequest]) (*connect.Response[model.WorkspaceProfile], error)
// Gets a workspace setting.
GetWorkspaceSetting(context.Context, *connect.Request[GetWorkspaceSettingRequest]) (*connect.Response[model.WorkspaceSetting], error)
}
WorkspaceServiceClient is a client for the api.v2.WorkspaceService service.
func NewWorkspaceServiceClient ¶
func NewWorkspaceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WorkspaceServiceClient
NewWorkspaceServiceClient constructs a client for the api.v2.WorkspaceService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type WorkspaceServiceHandler ¶
type WorkspaceServiceHandler interface {
// Gets the workspace profile.
GetWorkspaceProfile(context.Context, *connect.Request[GetWorkspaceProfileRequest]) (*connect.Response[model.WorkspaceProfile], error)
// Gets a workspace setting.
GetWorkspaceSetting(context.Context, *connect.Request[GetWorkspaceSettingRequest]) (*connect.Response[model.WorkspaceSetting], error)
}
WorkspaceServiceHandler is an implementation of the api.v2.WorkspaceService service.