Documentation
¶
Overview ¶
Package apiv2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package apiv2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterMemoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMemoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MemoServiceClient) error
- func RegisterMemoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMemoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MemoServiceServer) error
- func RegisterMemoServiceServer(s grpc.ServiceRegistrar, srv MemoServiceServer)
- func RegisterResourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterResourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceServiceClient) error
- func RegisterResourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterResourceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResourceServiceServer) error
- func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
- func RegisterSystemServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSystemServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SystemServiceClient) error
- func RegisterSystemServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSystemServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SystemServiceServer) error
- func RegisterSystemServiceServer(s grpc.ServiceRegistrar, srv SystemServiceServer)
- func RegisterTagServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTagServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TagServiceClient) error
- func RegisterTagServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTagServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TagServiceServer) error
- func RegisterTagServiceServer(s grpc.ServiceRegistrar, srv TagServiceServer)
- 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)
- type CreateUserAccessTokenRequest
- func (*CreateUserAccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserAccessTokenRequest) GetUserAccessToken() *UserAccessToken
- func (x *CreateUserAccessTokenRequest) GetUsername() string
- func (*CreateUserAccessTokenRequest) ProtoMessage()
- func (x *CreateUserAccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserAccessTokenRequest) Reset()
- func (x *CreateUserAccessTokenRequest) String() string
- type CreateUserAccessTokenResponse
- func (*CreateUserAccessTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserAccessTokenResponse) GetAccessToken() *UserAccessToken
- func (*CreateUserAccessTokenResponse) ProtoMessage()
- func (x *CreateUserAccessTokenResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserAccessTokenResponse) Reset()
- func (x *CreateUserAccessTokenResponse) String() string
- type DeleteUserAccessTokenRequest
- func (*DeleteUserAccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserAccessTokenRequest) GetAccessToken() string
- func (x *DeleteUserAccessTokenRequest) GetUsername() string
- func (*DeleteUserAccessTokenRequest) ProtoMessage()
- func (x *DeleteUserAccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserAccessTokenRequest) Reset()
- func (x *DeleteUserAccessTokenRequest) String() string
- type DeleteUserAccessTokenResponse
- func (*DeleteUserAccessTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteUserAccessTokenResponse) ProtoMessage()
- func (x *DeleteUserAccessTokenResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserAccessTokenResponse) Reset()
- func (x *DeleteUserAccessTokenResponse) String() string
- type GetMemoRequest
- type GetMemoResponse
- type GetSystemInfoRequest
- type GetSystemInfoResponse
- func (*GetSystemInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSystemInfoResponse) GetSystemInfo() *SystemInfo
- func (*GetSystemInfoResponse) ProtoMessage()
- func (x *GetSystemInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetSystemInfoResponse) Reset()
- func (x *GetSystemInfoResponse) String() string
- type GetUserRequest
- type GetUserResponse
- type ListMemosRequest
- func (*ListMemosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMemosRequest) GetFilter() string
- func (x *ListMemosRequest) GetPage() int32
- func (x *ListMemosRequest) GetPageSize() int32
- func (*ListMemosRequest) ProtoMessage()
- func (x *ListMemosRequest) ProtoReflect() protoreflect.Message
- func (x *ListMemosRequest) Reset()
- func (x *ListMemosRequest) String() string
- type ListMemosResponse
- type ListResourcesRequest
- type ListResourcesResponse
- func (*ListResourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResourcesResponse) GetResources() []*Resource
- func (*ListResourcesResponse) ProtoMessage()
- func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *ListResourcesResponse) Reset()
- func (x *ListResourcesResponse) String() string
- type ListTagsRequest
- type ListTagsResponse
- type ListUserAccessTokensRequest
- func (*ListUserAccessTokensRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserAccessTokensRequest) GetUsername() string
- 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 Memo
- func (*Memo) Descriptor() ([]byte, []int)deprecated
- func (x *Memo) GetContent() string
- func (x *Memo) GetCreatedTs() int64
- func (x *Memo) GetCreatorId() int32
- func (x *Memo) GetId() int32
- func (x *Memo) GetPinned() bool
- func (x *Memo) GetRowStatus() RowStatus
- func (x *Memo) GetUpdatedTs() int64
- func (x *Memo) GetVisibility() Visibility
- func (*Memo) ProtoMessage()
- func (x *Memo) ProtoReflect() protoreflect.Message
- func (x *Memo) Reset()
- func (x *Memo) String() string
- type MemoServiceClient
- type MemoServiceServer
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetCreatedTs() *timestamppb.Timestamp
- func (x *Resource) GetExternalLink() string
- func (x *Resource) GetFilename() string
- func (x *Resource) GetId() int32
- func (x *Resource) GetRelatedMemoId() int32
- func (x *Resource) GetSize() int64
- func (x *Resource) GetType() string
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type ResourceServiceClient
- type ResourceServiceServer
- type RowStatus
- type SystemInfo
- func (*SystemInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SystemInfo) GetAdditionalScript() string
- func (x *SystemInfo) GetAdditionalStyle() string
- func (x *SystemInfo) GetAllowRegistration() bool
- func (x *SystemInfo) GetDbSize() int64
- func (x *SystemInfo) GetDisablePasswordLogin() bool
- func (x *SystemInfo) GetMode() string
- func (x *SystemInfo) GetVersion() string
- func (*SystemInfo) ProtoMessage()
- func (x *SystemInfo) ProtoReflect() protoreflect.Message
- func (x *SystemInfo) Reset()
- func (x *SystemInfo) String() string
- type SystemServiceClient
- type SystemServiceServer
- type Tag
- type TagServiceClient
- type TagServiceServer
- type UnimplementedMemoServiceServer
- type UnimplementedResourceServiceServer
- type UnimplementedSystemServiceServer
- type UnimplementedTagServiceServer
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUserAccessToken(context.Context, *CreateUserAccessTokenRequest) (*CreateUserAccessTokenResponse, error)
- func (UnimplementedUserServiceServer) DeleteUserAccessToken(context.Context, *DeleteUserAccessTokenRequest) (*DeleteUserAccessTokenResponse, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedUserServiceServer) ListUserAccessTokens(context.Context, *ListUserAccessTokensRequest) (*ListUserAccessTokensResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
- type UnsafeMemoServiceServer
- type UnsafeResourceServiceServer
- type UnsafeSystemServiceServer
- type UnsafeTagServiceServer
- type UnsafeUserServiceServer
- type UpdateSystemInfoRequest
- func (*UpdateSystemInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSystemInfoRequest) GetSystemInfo() *SystemInfo
- func (x *UpdateSystemInfoRequest) GetUpdateMask() []string
- func (*UpdateSystemInfoRequest) ProtoMessage()
- func (x *UpdateSystemInfoRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSystemInfoRequest) Reset()
- func (x *UpdateSystemInfoRequest) String() string
- type UpdateSystemInfoResponse
- func (*UpdateSystemInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSystemInfoResponse) GetSystemInfo() *SystemInfo
- func (*UpdateSystemInfoResponse) ProtoMessage()
- func (x *UpdateSystemInfoResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateSystemInfoResponse) Reset()
- func (x *UpdateSystemInfoResponse) String() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetUpdateMask() []string
- func (x *UpdateUserRequest) GetUser() *User
- func (x *UpdateUserRequest) GetUsername() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateUserResponse
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatarUrl() string
- func (x *User) GetCreateTime() *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() User_Role
- func (x *User) GetRowStatus() RowStatus
- func (x *User) GetUpdateTime() *timestamppb.Timestamp
- func (x *User) GetUsername() string
- 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 User_Role
- type Visibility
Constants ¶
const ( MemoService_ListMemos_FullMethodName = "/memos.api.v2.MemoService/ListMemos" MemoService_GetMemo_FullMethodName = "/memos.api.v2.MemoService/GetMemo" )
const ( SystemService_GetSystemInfo_FullMethodName = "/memos.api.v2.SystemService/GetSystemInfo" SystemService_UpdateSystemInfo_FullMethodName = "/memos.api.v2.SystemService/UpdateSystemInfo" )
const ( UserService_GetUser_FullMethodName = "/memos.api.v2.UserService/GetUser" UserService_UpdateUser_FullMethodName = "/memos.api.v2.UserService/UpdateUser" UserService_ListUserAccessTokens_FullMethodName = "/memos.api.v2.UserService/ListUserAccessTokens" UserService_CreateUserAccessToken_FullMethodName = "/memos.api.v2.UserService/CreateUserAccessToken" UserService_DeleteUserAccessToken_FullMethodName = "/memos.api.v2.UserService/DeleteUserAccessToken" )
const (
ResourceService_ListResources_FullMethodName = "/memos.api.v2.ResourceService/ListResources"
)
const (
TagService_ListTags_FullMethodName = "/memos.api.v2.TagService/ListTags"
)
Variables ¶
var ( RowStatus_name = map[int32]string{ 0: "ROW_STATUS_UNSPECIFIED", 1: "ACTIVE", 2: "ARCHIVED", } RowStatus_value = map[string]int32{ "ROW_STATUS_UNSPECIFIED": 0, "ACTIVE": 1, "ARCHIVED": 2, } )
Enum value maps for RowStatus.
var ( Visibility_name = map[int32]string{ 0: "VISIBILITY_UNSPECIFIED", 1: "PRIVATE", 2: "PROTECTED", 3: "PUBLIC", } Visibility_value = map[string]int32{ "VISIBILITY_UNSPECIFIED": 0, "PRIVATE": 1, "PROTECTED": 2, "PUBLIC": 3, } )
Enum value maps for Visibility.
var ( User_Role_name = map[int32]string{ 0: "ROLE_UNSPECIFIED", 1: "HOST", 2: "ADMIN", 3: "USER", } User_Role_value = map[string]int32{ "ROLE_UNSPECIFIED": 0, "HOST": 1, "ADMIN": 2, "USER": 3, } )
Enum value maps for User_Role.
var File_api_v2_common_proto protoreflect.FileDescriptor
var File_api_v2_memo_service_proto protoreflect.FileDescriptor
var File_api_v2_resource_service_proto protoreflect.FileDescriptor
var File_api_v2_system_service_proto protoreflect.FileDescriptor
var File_api_v2_tag_service_proto protoreflect.FileDescriptor
var File_api_v2_user_service_proto protoreflect.FileDescriptor
var MemoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "memos.api.v2.MemoService", HandlerType: (*MemoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListMemos", Handler: _MemoService_ListMemos_Handler, }, { MethodName: "GetMemo", Handler: _MemoService_GetMemo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v2/memo_service.proto", }
MemoService_ServiceDesc is the grpc.ServiceDesc for MemoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ResourceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "memos.api.v2.ResourceService", HandlerType: (*ResourceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListResources", Handler: _ResourceService_ListResources_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v2/resource_service.proto", }
ResourceService_ServiceDesc is the grpc.ServiceDesc for ResourceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SystemService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "memos.api.v2.SystemService", HandlerType: (*SystemServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSystemInfo", Handler: _SystemService_GetSystemInfo_Handler, }, { MethodName: "UpdateSystemInfo", Handler: _SystemService_UpdateSystemInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v2/system_service.proto", }
SystemService_ServiceDesc is the grpc.ServiceDesc for SystemService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TagService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "memos.api.v2.TagService", HandlerType: (*TagServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListTags", Handler: _TagService_ListTags_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v2/tag_service.proto", }
TagService_ServiceDesc is the grpc.ServiceDesc for TagService 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: "memos.api.v2.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "ListUserAccessTokens", Handler: _UserService_ListUserAccessTokens_Handler, }, { MethodName: "CreateUserAccessToken", Handler: _UserService_CreateUserAccessToken_Handler, }, { MethodName: "DeleteUserAccessToken", Handler: _UserService_DeleteUserAccessToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v2/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)
Functions ¶
func RegisterMemoServiceHandler ¶
func RegisterMemoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMemoServiceHandler registers the http handlers for service MemoService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMemoServiceHandlerClient ¶
func RegisterMemoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MemoServiceClient) error
RegisterMemoServiceHandlerClient registers the http handlers for service MemoService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MemoServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MemoServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MemoServiceClient" to call the correct interceptors.
func RegisterMemoServiceHandlerFromEndpoint ¶
func RegisterMemoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMemoServiceHandlerFromEndpoint is same as RegisterMemoServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMemoServiceHandlerServer ¶
func RegisterMemoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MemoServiceServer) error
RegisterMemoServiceHandlerServer registers the http handlers for service MemoService to "mux". UnaryRPC :call MemoServiceServer 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 RegisterMemoServiceHandlerFromEndpoint instead.
func RegisterMemoServiceServer ¶
func RegisterMemoServiceServer(s grpc.ServiceRegistrar, srv MemoServiceServer)
func RegisterResourceServiceHandler ¶ added in v0.15.0
func RegisterResourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterResourceServiceHandler registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterResourceServiceHandlerClient ¶ added in v0.15.0
func RegisterResourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceServiceClient) error
RegisterResourceServiceHandlerClient registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ResourceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ResourceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ResourceServiceClient" to call the correct interceptors.
func RegisterResourceServiceHandlerFromEndpoint ¶ added in v0.15.0
func RegisterResourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterResourceServiceHandlerFromEndpoint is same as RegisterResourceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterResourceServiceHandlerServer ¶ added in v0.15.0
func RegisterResourceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResourceServiceServer) error
RegisterResourceServiceHandlerServer registers the http handlers for service ResourceService to "mux". UnaryRPC :call ResourceServiceServer 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 RegisterResourceServiceHandlerFromEndpoint instead.
func RegisterResourceServiceServer ¶ added in v0.15.0
func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
func RegisterSystemServiceHandler ¶
func RegisterSystemServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSystemServiceHandler registers the http handlers for service SystemService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSystemServiceHandlerClient ¶
func RegisterSystemServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SystemServiceClient) error
RegisterSystemServiceHandlerClient registers the http handlers for service SystemService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SystemServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SystemServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SystemServiceClient" to call the correct interceptors.
func RegisterSystemServiceHandlerFromEndpoint ¶
func RegisterSystemServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSystemServiceHandlerFromEndpoint is same as RegisterSystemServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSystemServiceHandlerServer ¶
func RegisterSystemServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SystemServiceServer) error
RegisterSystemServiceHandlerServer registers the http handlers for service SystemService to "mux". UnaryRPC :call SystemServiceServer 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 RegisterSystemServiceHandlerFromEndpoint instead.
func RegisterSystemServiceServer ¶
func RegisterSystemServiceServer(s grpc.ServiceRegistrar, srv SystemServiceServer)
func RegisterTagServiceHandler ¶
func RegisterTagServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTagServiceHandler registers the http handlers for service TagService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTagServiceHandlerClient ¶
func RegisterTagServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TagServiceClient) error
RegisterTagServiceHandlerClient registers the http handlers for service TagService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TagServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TagServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TagServiceClient" to call the correct interceptors.
func RegisterTagServiceHandlerFromEndpoint ¶
func RegisterTagServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTagServiceHandlerFromEndpoint is same as RegisterTagServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTagServiceHandlerServer ¶
func RegisterTagServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TagServiceServer) error
RegisterTagServiceHandlerServer registers the http handlers for service TagService to "mux". UnaryRPC :call TagServiceServer 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 RegisterTagServiceHandlerFromEndpoint instead.
func RegisterTagServiceServer ¶
func RegisterTagServiceServer(s grpc.ServiceRegistrar, srv TagServiceServer)
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.
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.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type CreateUserAccessTokenRequest ¶ added in v0.15.0
type CreateUserAccessTokenRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` UserAccessToken *UserAccessToken `protobuf:"bytes,2,opt,name=user_access_token,json=userAccessToken,proto3" json:"user_access_token,omitempty"` // contains filtered or unexported fields }
func (*CreateUserAccessTokenRequest) Descriptor
deprecated
added in
v0.15.0
func (*CreateUserAccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserAccessTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateUserAccessTokenRequest) GetUserAccessToken ¶ added in v0.15.0
func (x *CreateUserAccessTokenRequest) GetUserAccessToken() *UserAccessToken
func (*CreateUserAccessTokenRequest) GetUsername ¶ added in v0.15.0
func (x *CreateUserAccessTokenRequest) GetUsername() string
func (*CreateUserAccessTokenRequest) ProtoMessage ¶ added in v0.15.0
func (*CreateUserAccessTokenRequest) ProtoMessage()
func (*CreateUserAccessTokenRequest) ProtoReflect ¶ added in v0.15.0
func (x *CreateUserAccessTokenRequest) ProtoReflect() protoreflect.Message
func (*CreateUserAccessTokenRequest) Reset ¶ added in v0.15.0
func (x *CreateUserAccessTokenRequest) Reset()
func (*CreateUserAccessTokenRequest) String ¶ added in v0.15.0
func (x *CreateUserAccessTokenRequest) String() string
type CreateUserAccessTokenResponse ¶ added in v0.15.0
type CreateUserAccessTokenResponse struct { AccessToken *UserAccessToken `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*CreateUserAccessTokenResponse) Descriptor
deprecated
added in
v0.15.0
func (*CreateUserAccessTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserAccessTokenResponse.ProtoReflect.Descriptor instead.
func (*CreateUserAccessTokenResponse) GetAccessToken ¶ added in v0.15.0
func (x *CreateUserAccessTokenResponse) GetAccessToken() *UserAccessToken
func (*CreateUserAccessTokenResponse) ProtoMessage ¶ added in v0.15.0
func (*CreateUserAccessTokenResponse) ProtoMessage()
func (*CreateUserAccessTokenResponse) ProtoReflect ¶ added in v0.15.0
func (x *CreateUserAccessTokenResponse) ProtoReflect() protoreflect.Message
func (*CreateUserAccessTokenResponse) Reset ¶ added in v0.15.0
func (x *CreateUserAccessTokenResponse) Reset()
func (*CreateUserAccessTokenResponse) String ¶ added in v0.15.0
func (x *CreateUserAccessTokenResponse) String() string
type DeleteUserAccessTokenRequest ¶ added in v0.15.0
type DeleteUserAccessTokenRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,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
added in
v0.15.0
func (*DeleteUserAccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserAccessTokenRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserAccessTokenRequest) GetAccessToken ¶ added in v0.15.0
func (x *DeleteUserAccessTokenRequest) GetAccessToken() string
func (*DeleteUserAccessTokenRequest) GetUsername ¶ added in v0.15.0
func (x *DeleteUserAccessTokenRequest) GetUsername() string
func (*DeleteUserAccessTokenRequest) ProtoMessage ¶ added in v0.15.0
func (*DeleteUserAccessTokenRequest) ProtoMessage()
func (*DeleteUserAccessTokenRequest) ProtoReflect ¶ added in v0.15.0
func (x *DeleteUserAccessTokenRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserAccessTokenRequest) Reset ¶ added in v0.15.0
func (x *DeleteUserAccessTokenRequest) Reset()
func (*DeleteUserAccessTokenRequest) String ¶ added in v0.15.0
func (x *DeleteUserAccessTokenRequest) String() string
type DeleteUserAccessTokenResponse ¶ added in v0.15.0
type DeleteUserAccessTokenResponse struct {
// contains filtered or unexported fields
}
func (*DeleteUserAccessTokenResponse) Descriptor
deprecated
added in
v0.15.0
func (*DeleteUserAccessTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserAccessTokenResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserAccessTokenResponse) ProtoMessage ¶ added in v0.15.0
func (*DeleteUserAccessTokenResponse) ProtoMessage()
func (*DeleteUserAccessTokenResponse) ProtoReflect ¶ added in v0.15.0
func (x *DeleteUserAccessTokenResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserAccessTokenResponse) Reset ¶ added in v0.15.0
func (x *DeleteUserAccessTokenResponse) Reset()
func (*DeleteUserAccessTokenResponse) String ¶ added in v0.15.0
func (x *DeleteUserAccessTokenResponse) String() string
type GetMemoRequest ¶
type GetMemoRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetMemoRequest) Descriptor
deprecated
func (*GetMemoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMemoRequest.ProtoReflect.Descriptor instead.
func (*GetMemoRequest) GetId ¶
func (x *GetMemoRequest) GetId() int32
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 GetMemoResponse ¶
type GetMemoResponse struct { Memo *Memo `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"` // contains filtered or unexported fields }
func (*GetMemoResponse) Descriptor
deprecated
func (*GetMemoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMemoResponse.ProtoReflect.Descriptor instead.
func (*GetMemoResponse) GetMemo ¶
func (x *GetMemoResponse) GetMemo() *Memo
func (*GetMemoResponse) ProtoMessage ¶
func (*GetMemoResponse) ProtoMessage()
func (*GetMemoResponse) ProtoReflect ¶
func (x *GetMemoResponse) ProtoReflect() protoreflect.Message
func (*GetMemoResponse) Reset ¶
func (x *GetMemoResponse) Reset()
func (*GetMemoResponse) String ¶
func (x *GetMemoResponse) String() string
type GetSystemInfoRequest ¶
type GetSystemInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetSystemInfoRequest) Descriptor
deprecated
func (*GetSystemInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSystemInfoRequest.ProtoReflect.Descriptor instead.
func (*GetSystemInfoRequest) ProtoMessage ¶
func (*GetSystemInfoRequest) ProtoMessage()
func (*GetSystemInfoRequest) ProtoReflect ¶
func (x *GetSystemInfoRequest) ProtoReflect() protoreflect.Message
func (*GetSystemInfoRequest) Reset ¶
func (x *GetSystemInfoRequest) Reset()
func (*GetSystemInfoRequest) String ¶
func (x *GetSystemInfoRequest) String() string
type GetSystemInfoResponse ¶
type GetSystemInfoResponse struct { SystemInfo *SystemInfo `protobuf:"bytes,1,opt,name=system_info,json=systemInfo,proto3" json:"system_info,omitempty"` // contains filtered or unexported fields }
func (*GetSystemInfoResponse) Descriptor
deprecated
func (*GetSystemInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSystemInfoResponse.ProtoReflect.Descriptor instead.
func (*GetSystemInfoResponse) GetSystemInfo ¶
func (x *GetSystemInfoResponse) GetSystemInfo() *SystemInfo
func (*GetSystemInfoResponse) ProtoMessage ¶
func (*GetSystemInfoResponse) ProtoMessage()
func (*GetSystemInfoResponse) ProtoReflect ¶
func (x *GetSystemInfoResponse) ProtoReflect() protoreflect.Message
func (*GetSystemInfoResponse) Reset ¶
func (x *GetSystemInfoResponse) Reset()
func (*GetSystemInfoResponse) String ¶
func (x *GetSystemInfoResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetUsername ¶ added in v0.15.0
func (x *GetUserRequest) GetUsername() string
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 GetUserResponse ¶
type GetUserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetUser ¶
func (x *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type ListMemosRequest ¶
type ListMemosRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Filter is used to filter memos returned in the list. Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,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) GetPage ¶
func (x *ListMemosRequest) GetPage() int32
func (*ListMemosRequest) GetPageSize ¶
func (x *ListMemosRequest) GetPageSize() int32
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 { Memos []*Memo `protobuf:"bytes,1,rep,name=memos,proto3" json:"memos,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() []*Memo
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 ListResourcesRequest ¶ added in v0.15.0
type ListResourcesRequest struct {
// contains filtered or unexported fields
}
func (*ListResourcesRequest) Descriptor
deprecated
added in
v0.15.0
func (*ListResourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListResourcesRequest.ProtoReflect.Descriptor instead.
func (*ListResourcesRequest) ProtoMessage ¶ added in v0.15.0
func (*ListResourcesRequest) ProtoMessage()
func (*ListResourcesRequest) ProtoReflect ¶ added in v0.15.0
func (x *ListResourcesRequest) ProtoReflect() protoreflect.Message
func (*ListResourcesRequest) Reset ¶ added in v0.15.0
func (x *ListResourcesRequest) Reset()
func (*ListResourcesRequest) String ¶ added in v0.15.0
func (x *ListResourcesRequest) String() string
type ListResourcesResponse ¶ added in v0.15.0
type ListResourcesResponse struct { Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` // contains filtered or unexported fields }
func (*ListResourcesResponse) Descriptor
deprecated
added in
v0.15.0
func (*ListResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResourcesResponse.ProtoReflect.Descriptor instead.
func (*ListResourcesResponse) GetResources ¶ added in v0.15.0
func (x *ListResourcesResponse) GetResources() []*Resource
func (*ListResourcesResponse) ProtoMessage ¶ added in v0.15.0
func (*ListResourcesResponse) ProtoMessage()
func (*ListResourcesResponse) ProtoReflect ¶ added in v0.15.0
func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message
func (*ListResourcesResponse) Reset ¶ added in v0.15.0
func (x *ListResourcesResponse) Reset()
func (*ListResourcesResponse) String ¶ added in v0.15.0
func (x *ListResourcesResponse) String() string
type ListTagsRequest ¶
type ListTagsRequest struct { CreatorId int32 `protobuf:"varint,1,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` // contains filtered or unexported fields }
func (*ListTagsRequest) Descriptor
deprecated
func (*ListTagsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTagsRequest.ProtoReflect.Descriptor instead.
func (*ListTagsRequest) GetCreatorId ¶
func (x *ListTagsRequest) GetCreatorId() int32
func (*ListTagsRequest) ProtoMessage ¶
func (*ListTagsRequest) ProtoMessage()
func (*ListTagsRequest) ProtoReflect ¶
func (x *ListTagsRequest) ProtoReflect() protoreflect.Message
func (*ListTagsRequest) Reset ¶
func (x *ListTagsRequest) Reset()
func (*ListTagsRequest) String ¶
func (x *ListTagsRequest) String() string
type ListTagsResponse ¶
type ListTagsResponse struct { Tags []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*ListTagsResponse) Descriptor
deprecated
func (*ListTagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTagsResponse.ProtoReflect.Descriptor instead.
func (*ListTagsResponse) GetTags ¶
func (x *ListTagsResponse) GetTags() []*Tag
func (*ListTagsResponse) ProtoMessage ¶
func (*ListTagsResponse) ProtoMessage()
func (*ListTagsResponse) ProtoReflect ¶
func (x *ListTagsResponse) ProtoReflect() protoreflect.Message
func (*ListTagsResponse) Reset ¶
func (x *ListTagsResponse) Reset()
func (*ListTagsResponse) String ¶
func (x *ListTagsResponse) String() string
type ListUserAccessTokensRequest ¶ added in v0.15.0
type ListUserAccessTokensRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*ListUserAccessTokensRequest) Descriptor
deprecated
added in
v0.15.0
func (*ListUserAccessTokensRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserAccessTokensRequest.ProtoReflect.Descriptor instead.
func (*ListUserAccessTokensRequest) GetUsername ¶ added in v0.15.0
func (x *ListUserAccessTokensRequest) GetUsername() string
func (*ListUserAccessTokensRequest) ProtoMessage ¶ added in v0.15.0
func (*ListUserAccessTokensRequest) ProtoMessage()
func (*ListUserAccessTokensRequest) ProtoReflect ¶ added in v0.15.0
func (x *ListUserAccessTokensRequest) ProtoReflect() protoreflect.Message
func (*ListUserAccessTokensRequest) Reset ¶ added in v0.15.0
func (x *ListUserAccessTokensRequest) Reset()
func (*ListUserAccessTokensRequest) String ¶ added in v0.15.0
func (x *ListUserAccessTokensRequest) String() string
type ListUserAccessTokensResponse ¶ added in v0.15.0
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
added in
v0.15.0
func (*ListUserAccessTokensResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUserAccessTokensResponse.ProtoReflect.Descriptor instead.
func (*ListUserAccessTokensResponse) GetAccessTokens ¶ added in v0.15.0
func (x *ListUserAccessTokensResponse) GetAccessTokens() []*UserAccessToken
func (*ListUserAccessTokensResponse) ProtoMessage ¶ added in v0.15.0
func (*ListUserAccessTokensResponse) ProtoMessage()
func (*ListUserAccessTokensResponse) ProtoReflect ¶ added in v0.15.0
func (x *ListUserAccessTokensResponse) ProtoReflect() protoreflect.Message
func (*ListUserAccessTokensResponse) Reset ¶ added in v0.15.0
func (x *ListUserAccessTokensResponse) Reset()
func (*ListUserAccessTokensResponse) String ¶ added in v0.15.0
func (x *ListUserAccessTokensResponse) String() string
type Memo ¶
type Memo struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` RowStatus RowStatus `protobuf:"varint,2,opt,name=row_status,json=rowStatus,proto3,enum=memos.api.v2.RowStatus" json:"row_status,omitempty"` CreatorId int32 `protobuf:"varint,3,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` CreatedTs int64 `protobuf:"varint,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"` UpdatedTs int64 `protobuf:"varint,5,opt,name=updated_ts,json=updatedTs,proto3" json:"updated_ts,omitempty"` Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` Visibility Visibility `protobuf:"varint,7,opt,name=visibility,proto3,enum=memos.api.v2.Visibility" json:"visibility,omitempty"` Pinned bool `protobuf:"varint,8,opt,name=pinned,proto3" json:"pinned,omitempty"` // contains filtered or unexported fields }
func (*Memo) Descriptor
deprecated
func (*Memo) GetContent ¶
func (*Memo) GetCreatedTs ¶
func (*Memo) GetCreatorId ¶
func (*Memo) GetRowStatus ¶
func (*Memo) GetUpdatedTs ¶
func (*Memo) GetVisibility ¶
func (x *Memo) GetVisibility() Visibility
func (*Memo) ProtoMessage ¶
func (*Memo) ProtoMessage()
func (*Memo) ProtoReflect ¶
func (x *Memo) ProtoReflect() protoreflect.Message
type MemoServiceClient ¶
type MemoServiceClient interface { ListMemos(ctx context.Context, in *ListMemosRequest, opts ...grpc.CallOption) (*ListMemosResponse, error) GetMemo(ctx context.Context, in *GetMemoRequest, opts ...grpc.CallOption) (*GetMemoResponse, error) }
MemoServiceClient is the client API for MemoService 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 NewMemoServiceClient ¶
func NewMemoServiceClient(cc grpc.ClientConnInterface) MemoServiceClient
type MemoServiceServer ¶
type MemoServiceServer interface { ListMemos(context.Context, *ListMemosRequest) (*ListMemosResponse, error) GetMemo(context.Context, *GetMemoRequest) (*GetMemoResponse, error) // contains filtered or unexported methods }
MemoServiceServer is the server API for MemoService service. All implementations must embed UnimplementedMemoServiceServer for forward compatibility
type Resource ¶ added in v0.15.0
type Resource struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedTs *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"` Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` ExternalLink string `protobuf:"bytes,4,opt,name=external_link,json=externalLink,proto3" json:"external_link,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` RelatedMemoId *int32 `protobuf:"varint,7,opt,name=related_memo_id,json=relatedMemoId,proto3,oneof" json:"related_memo_id,omitempty"` // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
added in
v0.15.0
func (*Resource) GetCreatedTs ¶ added in v0.15.0
func (x *Resource) GetCreatedTs() *timestamppb.Timestamp
func (*Resource) GetExternalLink ¶ added in v0.15.0
func (*Resource) GetFilename ¶ added in v0.15.0
func (*Resource) GetRelatedMemoId ¶ added in v0.15.0
func (*Resource) ProtoMessage ¶ added in v0.15.0
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶ added in v0.15.0
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourceServiceClient ¶ added in v0.15.0
type ResourceServiceClient interface {
ListResources(ctx context.Context, in *ListResourcesRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error)
}
ResourceServiceClient is the client API for ResourceService 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 NewResourceServiceClient ¶ added in v0.15.0
func NewResourceServiceClient(cc grpc.ClientConnInterface) ResourceServiceClient
type ResourceServiceServer ¶ added in v0.15.0
type ResourceServiceServer interface { ListResources(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error) // contains filtered or unexported methods }
ResourceServiceServer is the server API for ResourceService service. All implementations must embed UnimplementedResourceServiceServer for forward compatibility
type RowStatus ¶
type RowStatus int32
func (RowStatus) Descriptor ¶
func (RowStatus) Descriptor() protoreflect.EnumDescriptor
func (RowStatus) EnumDescriptor
deprecated
func (RowStatus) Number ¶
func (x RowStatus) Number() protoreflect.EnumNumber
func (RowStatus) Type ¶
func (RowStatus) Type() protoreflect.EnumType
type SystemInfo ¶
type SystemInfo struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` AllowRegistration bool `protobuf:"varint,3,opt,name=allow_registration,json=allowRegistration,proto3" json:"allow_registration,omitempty"` DisablePasswordLogin bool `protobuf:"varint,4,opt,name=disable_password_login,json=disablePasswordLogin,proto3" json:"disable_password_login,omitempty"` AdditionalScript string `protobuf:"bytes,5,opt,name=additional_script,json=additionalScript,proto3" json:"additional_script,omitempty"` AdditionalStyle string `protobuf:"bytes,6,opt,name=additional_style,json=additionalStyle,proto3" json:"additional_style,omitempty"` DbSize int64 `protobuf:"varint,7,opt,name=db_size,json=dbSize,proto3" json:"db_size,omitempty"` // contains filtered or unexported fields }
func (*SystemInfo) Descriptor
deprecated
func (*SystemInfo) Descriptor() ([]byte, []int)
Deprecated: Use SystemInfo.ProtoReflect.Descriptor instead.
func (*SystemInfo) GetAdditionalScript ¶
func (x *SystemInfo) GetAdditionalScript() string
func (*SystemInfo) GetAdditionalStyle ¶
func (x *SystemInfo) GetAdditionalStyle() string
func (*SystemInfo) GetAllowRegistration ¶
func (x *SystemInfo) GetAllowRegistration() bool
func (*SystemInfo) GetDbSize ¶
func (x *SystemInfo) GetDbSize() int64
func (*SystemInfo) GetDisablePasswordLogin ¶
func (x *SystemInfo) GetDisablePasswordLogin() bool
func (*SystemInfo) GetMode ¶
func (x *SystemInfo) GetMode() string
func (*SystemInfo) GetVersion ¶
func (x *SystemInfo) GetVersion() string
func (*SystemInfo) ProtoMessage ¶
func (*SystemInfo) ProtoMessage()
func (*SystemInfo) ProtoReflect ¶
func (x *SystemInfo) ProtoReflect() protoreflect.Message
func (*SystemInfo) Reset ¶
func (x *SystemInfo) Reset()
func (*SystemInfo) String ¶
func (x *SystemInfo) String() string
type SystemServiceClient ¶
type SystemServiceClient interface { GetSystemInfo(ctx context.Context, in *GetSystemInfoRequest, opts ...grpc.CallOption) (*GetSystemInfoResponse, error) UpdateSystemInfo(ctx context.Context, in *UpdateSystemInfoRequest, opts ...grpc.CallOption) (*UpdateSystemInfoResponse, error) }
SystemServiceClient is the client API for SystemService 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 NewSystemServiceClient ¶
func NewSystemServiceClient(cc grpc.ClientConnInterface) SystemServiceClient
type SystemServiceServer ¶
type SystemServiceServer interface { GetSystemInfo(context.Context, *GetSystemInfoRequest) (*GetSystemInfoResponse, error) UpdateSystemInfo(context.Context, *UpdateSystemInfoRequest) (*UpdateSystemInfoResponse, error) // contains filtered or unexported methods }
SystemServiceServer is the server API for SystemService service. All implementations must embed UnimplementedSystemServiceServer for forward compatibility
type Tag ¶
type Tag struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` CreatorId int32 `protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` // contains filtered or unexported fields }
func (*Tag) Descriptor
deprecated
func (*Tag) GetCreatorId ¶
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type TagServiceClient ¶
type TagServiceClient interface {
ListTags(ctx context.Context, in *ListTagsRequest, opts ...grpc.CallOption) (*ListTagsResponse, error)
}
TagServiceClient is the client API for TagService 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 NewTagServiceClient ¶
func NewTagServiceClient(cc grpc.ClientConnInterface) TagServiceClient
type TagServiceServer ¶
type TagServiceServer interface { ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error) // contains filtered or unexported methods }
TagServiceServer is the server API for TagService service. All implementations must embed UnimplementedTagServiceServer for forward compatibility
type UnimplementedMemoServiceServer ¶
type UnimplementedMemoServiceServer struct { }
UnimplementedMemoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMemoServiceServer) GetMemo ¶
func (UnimplementedMemoServiceServer) GetMemo(context.Context, *GetMemoRequest) (*GetMemoResponse, error)
func (UnimplementedMemoServiceServer) ListMemos ¶
func (UnimplementedMemoServiceServer) ListMemos(context.Context, *ListMemosRequest) (*ListMemosResponse, error)
type UnimplementedResourceServiceServer ¶ added in v0.15.0
type UnimplementedResourceServiceServer struct { }
UnimplementedResourceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedResourceServiceServer) ListResources ¶ added in v0.15.0
func (UnimplementedResourceServiceServer) ListResources(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error)
type UnimplementedSystemServiceServer ¶
type UnimplementedSystemServiceServer struct { }
UnimplementedSystemServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSystemServiceServer) GetSystemInfo ¶
func (UnimplementedSystemServiceServer) GetSystemInfo(context.Context, *GetSystemInfoRequest) (*GetSystemInfoResponse, error)
func (UnimplementedSystemServiceServer) UpdateSystemInfo ¶ added in v0.15.0
func (UnimplementedSystemServiceServer) UpdateSystemInfo(context.Context, *UpdateSystemInfoRequest) (*UpdateSystemInfoResponse, error)
type UnimplementedTagServiceServer ¶
type UnimplementedTagServiceServer struct { }
UnimplementedTagServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTagServiceServer) ListTags ¶
func (UnimplementedTagServiceServer) ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUserAccessToken ¶ added in v0.15.0
func (UnimplementedUserServiceServer) CreateUserAccessToken(context.Context, *CreateUserAccessTokenRequest) (*CreateUserAccessTokenResponse, error)
func (UnimplementedUserServiceServer) DeleteUserAccessToken ¶ added in v0.15.0
func (UnimplementedUserServiceServer) DeleteUserAccessToken(context.Context, *DeleteUserAccessTokenRequest) (*DeleteUserAccessTokenResponse, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedUserServiceServer) ListUserAccessTokens ¶ added in v0.15.0
func (UnimplementedUserServiceServer) ListUserAccessTokens(context.Context, *ListUserAccessTokensRequest) (*ListUserAccessTokensResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶ added in v0.15.0
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
type UnsafeMemoServiceServer ¶
type UnsafeMemoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMemoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MemoServiceServer will result in compilation errors.
type UnsafeResourceServiceServer ¶ added in v0.15.0
type UnsafeResourceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeResourceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceServiceServer will result in compilation errors.
type UnsafeSystemServiceServer ¶
type UnsafeSystemServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSystemServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SystemServiceServer will result in compilation errors.
type UnsafeTagServiceServer ¶
type UnsafeTagServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTagServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagServiceServer 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 UpdateSystemInfoRequest ¶ added in v0.15.0
type UpdateSystemInfoRequest struct { // System info is the updated data. SystemInfo *SystemInfo `protobuf:"bytes,1,opt,name=system_info,json=systemInfo,proto3" json:"system_info,omitempty"` // Update mask is the array of paths. UpdateMask []string `protobuf:"bytes,2,rep,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateSystemInfoRequest) Descriptor
deprecated
added in
v0.15.0
func (*UpdateSystemInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSystemInfoRequest.ProtoReflect.Descriptor instead.
func (*UpdateSystemInfoRequest) GetSystemInfo ¶ added in v0.15.0
func (x *UpdateSystemInfoRequest) GetSystemInfo() *SystemInfo
func (*UpdateSystemInfoRequest) GetUpdateMask ¶ added in v0.15.0
func (x *UpdateSystemInfoRequest) GetUpdateMask() []string
func (*UpdateSystemInfoRequest) ProtoMessage ¶ added in v0.15.0
func (*UpdateSystemInfoRequest) ProtoMessage()
func (*UpdateSystemInfoRequest) ProtoReflect ¶ added in v0.15.0
func (x *UpdateSystemInfoRequest) ProtoReflect() protoreflect.Message
func (*UpdateSystemInfoRequest) Reset ¶ added in v0.15.0
func (x *UpdateSystemInfoRequest) Reset()
func (*UpdateSystemInfoRequest) String ¶ added in v0.15.0
func (x *UpdateSystemInfoRequest) String() string
type UpdateSystemInfoResponse ¶ added in v0.15.0
type UpdateSystemInfoResponse struct { SystemInfo *SystemInfo `protobuf:"bytes,1,opt,name=system_info,json=systemInfo,proto3" json:"system_info,omitempty"` // contains filtered or unexported fields }
func (*UpdateSystemInfoResponse) Descriptor
deprecated
added in
v0.15.0
func (*UpdateSystemInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSystemInfoResponse.ProtoReflect.Descriptor instead.
func (*UpdateSystemInfoResponse) GetSystemInfo ¶ added in v0.15.0
func (x *UpdateSystemInfoResponse) GetSystemInfo() *SystemInfo
func (*UpdateSystemInfoResponse) ProtoMessage ¶ added in v0.15.0
func (*UpdateSystemInfoResponse) ProtoMessage()
func (*UpdateSystemInfoResponse) ProtoReflect ¶ added in v0.15.0
func (x *UpdateSystemInfoResponse) ProtoReflect() protoreflect.Message
func (*UpdateSystemInfoResponse) Reset ¶ added in v0.15.0
func (x *UpdateSystemInfoResponse) Reset()
func (*UpdateSystemInfoResponse) String ¶ added in v0.15.0
func (x *UpdateSystemInfoResponse) String() string
type UpdateUserRequest ¶ added in v0.15.0
type UpdateUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // The update mask applies to the user resource. UpdateMask []string `protobuf:"bytes,3,rep,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
added in
v0.15.0
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetUpdateMask ¶ added in v0.15.0
func (x *UpdateUserRequest) GetUpdateMask() []string
func (*UpdateUserRequest) GetUser ¶ added in v0.15.0
func (x *UpdateUserRequest) GetUser() *User
func (*UpdateUserRequest) GetUsername ¶ added in v0.15.0
func (x *UpdateUserRequest) GetUsername() string
func (*UpdateUserRequest) ProtoMessage ¶ added in v0.15.0
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶ added in v0.15.0
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶ added in v0.15.0
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶ added in v0.15.0
func (x *UpdateUserRequest) String() string
type UpdateUserResponse ¶ added in v0.15.0
type UpdateUserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserResponse) Descriptor
deprecated
added in
v0.15.0
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) GetUser ¶ added in v0.15.0
func (x *UpdateUserResponse) GetUser() *User
func (*UpdateUserResponse) ProtoMessage ¶ added in v0.15.0
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) ProtoReflect ¶ added in v0.15.0
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserResponse) Reset ¶ added in v0.15.0
func (x *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶ added in v0.15.0
func (x *UpdateUserResponse) String() string
type User ¶
type User struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Role User_Role `protobuf:"varint,3,opt,name=role,proto3,enum=memos.api.v2.User_Role" json:"role,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` AvatarUrl string `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` Password string `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"` RowStatus RowStatus `protobuf:"varint,8,opt,name=row_status,json=rowStatus,proto3,enum=memos.api.v2.RowStatus" json:"row_status,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAvatarUrl ¶
func (*User) GetCreateTime ¶ added in v0.15.0
func (x *User) GetCreateTime() *timestamppb.Timestamp
func (*User) GetNickname ¶
func (*User) GetPassword ¶ added in v0.15.0
func (*User) GetRowStatus ¶
func (*User) GetUpdateTime ¶ added in v0.15.0
func (x *User) GetUpdateTime() *timestamppb.Timestamp
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserAccessToken ¶ added in v0.15.0
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
added in
v0.15.0
func (*UserAccessToken) Descriptor() ([]byte, []int)
Deprecated: Use UserAccessToken.ProtoReflect.Descriptor instead.
func (*UserAccessToken) GetAccessToken ¶ added in v0.15.0
func (x *UserAccessToken) GetAccessToken() string
func (*UserAccessToken) GetDescription ¶ added in v0.15.0
func (x *UserAccessToken) GetDescription() string
func (*UserAccessToken) GetExpiresAt ¶ added in v0.15.0
func (x *UserAccessToken) GetExpiresAt() *timestamppb.Timestamp
func (*UserAccessToken) GetIssuedAt ¶ added in v0.15.0
func (x *UserAccessToken) GetIssuedAt() *timestamppb.Timestamp
func (*UserAccessToken) ProtoMessage ¶ added in v0.15.0
func (*UserAccessToken) ProtoMessage()
func (*UserAccessToken) ProtoReflect ¶ added in v0.15.0
func (x *UserAccessToken) ProtoReflect() protoreflect.Message
func (*UserAccessToken) Reset ¶ added in v0.15.0
func (x *UserAccessToken) Reset()
func (*UserAccessToken) String ¶ added in v0.15.0
func (x *UserAccessToken) String() string
type UserServiceClient ¶
type UserServiceClient interface { GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, 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) (*CreateUserAccessTokenResponse, error) // DeleteUserAccessToken deletes an access token for a user. DeleteUserAccessToken(ctx context.Context, in *DeleteUserAccessTokenRequest, opts ...grpc.CallOption) (*DeleteUserAccessTokenResponse, 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 { GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, 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) (*CreateUserAccessTokenResponse, error) // DeleteUserAccessToken deletes an access token for a user. DeleteUserAccessToken(context.Context, *DeleteUserAccessTokenRequest) (*DeleteUserAccessTokenResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type User_Role ¶ added in v0.15.0
type User_Role int32
func (User_Role) Descriptor ¶ added in v0.15.0
func (User_Role) Descriptor() protoreflect.EnumDescriptor
func (User_Role) EnumDescriptor
deprecated
added in
v0.15.0
func (User_Role) Number ¶ added in v0.15.0
func (x User_Role) Number() protoreflect.EnumNumber
func (User_Role) Type ¶ added in v0.15.0
func (User_Role) Type() protoreflect.EnumType
type Visibility ¶
type Visibility int32
const ( Visibility_VISIBILITY_UNSPECIFIED Visibility = 0 Visibility_PRIVATE Visibility = 1 Visibility_PROTECTED Visibility = 2 Visibility_PUBLIC Visibility = 3 )
func (Visibility) Descriptor ¶
func (Visibility) Descriptor() protoreflect.EnumDescriptor
func (Visibility) Enum ¶
func (x Visibility) Enum() *Visibility
func (Visibility) EnumDescriptor
deprecated
func (Visibility) EnumDescriptor() ([]byte, []int)
Deprecated: Use Visibility.Descriptor instead.
func (Visibility) Number ¶
func (x Visibility) Number() protoreflect.EnumNumber
func (Visibility) String ¶
func (x Visibility) String() string
func (Visibility) Type ¶
func (Visibility) Type() protoreflect.EnumType
Source Files
¶
- common.pb.go
- memo_service.pb.go
- memo_service.pb.gw.go
- memo_service_grpc.pb.go
- resource_service.pb.go
- resource_service.pb.gw.go
- resource_service_grpc.pb.go
- system_service.pb.go
- system_service.pb.gw.go
- system_service_grpc.pb.go
- tag_service.pb.go
- tag_service.pb.gw.go
- tag_service_grpc.pb.go
- user_service.pb.go
- user_service.pb.gw.go
- user_service_grpc.pb.go