apiv2

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 17 Imported by: 0

README

Protocol Documentation

Table of Contents

Top

api/v2/common.proto

RowStatus
Name Number Description
ROW_STATUS_UNSPECIFIED 0
ACTIVE 1
ARCHIVED 2

Top

api/v2/memo_service.proto

GetMemoRequest
Field Type Label Description
id int32

GetMemoResponse
Field Type Label Description
memo Memo

ListMemosRequest
Field Type Label Description
page int32
page_size int32
filter string Filter is used to filter memos returned in the list.

ListMemosResponse
Field Type Label Description
memos Memo repeated

Memo
Field Type Label Description
id int32
row_status RowStatus
creator_id int32
created_ts int64
updated_ts int64
content string
visibility Visibility
pinned bool

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

MemoService
Method Name Request Type Response Type Description
ListMemos ListMemosRequest ListMemosResponse
GetMemo GetMemoRequest GetMemoResponse

Top

api/v2/resource_service.proto

ListResourcesRequest

ListResourcesResponse
Field Type Label Description
resources Resource repeated

Resource
Field Type Label Description
id int32
created_ts google.protobuf.Timestamp
filename string
external_link string
type string
size int64
related_memo_id int32 optional

ResourceService
Method Name Request Type Response Type Description
ListResources ListResourcesRequest ListResourcesResponse

Top

api/v2/system_service.proto

GetSystemInfoRequest

GetSystemInfoResponse
Field Type Label Description
system_info SystemInfo

SystemInfo
Field Type Label Description
version string
mode string
allow_registration bool
disable_password_login bool
additional_script string
additional_style string
db_size int64

UpdateSystemInfoRequest
Field Type Label Description
system_info SystemInfo System info is the updated data.
update_mask string repeated Update mask is the array of paths.

UpdateSystemInfoResponse
Field Type Label Description
system_info SystemInfo

SystemService
Method Name Request Type Response Type Description
GetSystemInfo GetSystemInfoRequest GetSystemInfoResponse
UpdateSystemInfo UpdateSystemInfoRequest UpdateSystemInfoResponse

Top

api/v2/tag_service.proto

ListTagsRequest
Field Type Label Description
creator_id int32

ListTagsResponse
Field Type Label Description
tags Tag repeated

Tag
Field Type Label Description
name string
creator_id int32

TagService
Method Name Request Type Response Type Description
ListTags ListTagsRequest ListTagsResponse

Top

api/v2/user_service.proto

CreateUserAccessTokenRequest
Field Type Label Description
username string
user_access_token UserAccessToken

CreateUserAccessTokenResponse
Field Type Label Description
access_token UserAccessToken

DeleteUserAccessTokenRequest
Field Type Label Description
username string
access_token string access_token is the access token to delete.

DeleteUserAccessTokenResponse

GetUserRequest
Field Type Label Description
username string

GetUserResponse
Field Type Label Description
user User

ListUserAccessTokensRequest
Field Type Label Description
username string

ListUserAccessTokensResponse
Field Type Label Description
access_tokens UserAccessToken repeated

UpdateUserRequest
Field Type Label Description
username string
user User
update_mask string repeated The update mask applies to the user resource.

UpdateUserResponse
Field Type Label Description
user User

User
Field Type Label Description
id int32
username string
role User.Role
email string
nickname string
avatar_url string
password string
row_status RowStatus
create_time google.protobuf.Timestamp
update_time google.protobuf.Timestamp

UserAccessToken
Field Type Label Description
access_token string
description string
issued_at google.protobuf.Timestamp
expires_at google.protobuf.Timestamp

User.Role
Name Number Description
ROLE_UNSPECIFIED 0
HOST 1
ADMIN 2
USER 3

UserService
Method Name Request Type Response Type Description
GetUser GetUserRequest GetUserResponse
UpdateUser UpdateUserRequest UpdateUserResponse
ListUserAccessTokens ListUserAccessTokensRequest ListUserAccessTokensResponse ListUserAccessTokens returns a list of access tokens for a user.
CreateUserAccessToken CreateUserAccessTokenRequest CreateUserAccessTokenResponse CreateUserAccessToken creates a new access token for a user.
DeleteUserAccessToken DeleteUserAccessTokenRequest DeleteUserAccessTokenResponse DeleteUserAccessToken deletes an access token for a user.

Scalar Value Types

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

Documentation

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

View Source
const (
	MemoService_ListMemos_FullMethodName = "/memos.api.v2.MemoService/ListMemos"
	MemoService_GetMemo_FullMethodName   = "/memos.api.v2.MemoService/GetMemo"
)
View Source
const (
	SystemService_GetSystemInfo_FullMethodName    = "/memos.api.v2.SystemService/GetSystemInfo"
	SystemService_UpdateSystemInfo_FullMethodName = "/memos.api.v2.SystemService/UpdateSystemInfo"
)
View Source
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"
)
View Source
const (
	ResourceService_ListResources_FullMethodName = "/memos.api.v2.ResourceService/ListResources"
)
View Source
const (
	TagService_ListTags_FullMethodName = "/memos.api.v2.TagService/ListTags"
)

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
var File_api_v2_common_proto protoreflect.FileDescriptor
View Source
var File_api_v2_memo_service_proto protoreflect.FileDescriptor
View Source
var File_api_v2_resource_service_proto protoreflect.FileDescriptor
View Source
var File_api_v2_system_service_proto protoreflect.FileDescriptor
View Source
var File_api_v2_tag_service_proto protoreflect.FileDescriptor
View Source
var File_api_v2_user_service_proto protoreflect.FileDescriptor
View Source
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)

View Source
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)

View Source
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)

View Source
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)

View Source
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 (*CreateUserAccessTokenRequest) Reset added in v0.15.0

func (x *CreateUserAccessTokenRequest) Reset()

func (*CreateUserAccessTokenRequest) String added in v0.15.0

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 (*CreateUserAccessTokenResponse) Reset added in v0.15.0

func (x *CreateUserAccessTokenResponse) Reset()

func (*CreateUserAccessTokenResponse) String added in v0.15.0

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 (*DeleteUserAccessTokenRequest) Reset added in v0.15.0

func (x *DeleteUserAccessTokenRequest) Reset()

func (*DeleteUserAccessTokenRequest) String added in v0.15.0

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 (*DeleteUserAccessTokenResponse) Reset added in v0.15.0

func (x *DeleteUserAccessTokenResponse) Reset()

func (*DeleteUserAccessTokenResponse) String added in v0.15.0

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 (*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 (*ListUserAccessTokensResponse) Reset added in v0.15.0

func (x *ListUserAccessTokensResponse) Reset()

func (*ListUserAccessTokensResponse) String added in v0.15.0

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) Descriptor() ([]byte, []int)

Deprecated: Use Memo.ProtoReflect.Descriptor instead.

func (*Memo) GetContent

func (x *Memo) GetContent() string

func (*Memo) GetCreatedTs

func (x *Memo) GetCreatedTs() int64

func (*Memo) GetCreatorId

func (x *Memo) GetCreatorId() int32

func (*Memo) GetId

func (x *Memo) GetId() int32

func (*Memo) GetPinned

func (x *Memo) GetPinned() bool

func (*Memo) GetRowStatus

func (x *Memo) GetRowStatus() RowStatus

func (*Memo) GetUpdatedTs

func (x *Memo) GetUpdatedTs() int64

func (*Memo) GetVisibility

func (x *Memo) GetVisibility() Visibility

func (*Memo) ProtoMessage

func (*Memo) ProtoMessage()

func (*Memo) ProtoReflect

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

func (*Memo) Reset

func (x *Memo) Reset()

func (*Memo) String

func (x *Memo) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetCreatedTs added in v0.15.0

func (x *Resource) GetCreatedTs() *timestamppb.Timestamp
func (x *Resource) GetExternalLink() string

func (*Resource) GetFilename added in v0.15.0

func (x *Resource) GetFilename() string

func (*Resource) GetId added in v0.15.0

func (x *Resource) GetId() int32

func (*Resource) GetRelatedMemoId added in v0.15.0

func (x *Resource) GetRelatedMemoId() int32

func (*Resource) GetSize added in v0.15.0

func (x *Resource) GetSize() int64

func (*Resource) GetType added in v0.15.0

func (x *Resource) GetType() string

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

func (*Resource) Reset added in v0.15.0

func (x *Resource) Reset()

func (*Resource) String added in v0.15.0

func (x *Resource) String() string

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
const (
	RowStatus_ROW_STATUS_UNSPECIFIED RowStatus = 0
	RowStatus_ACTIVE                 RowStatus = 1
	RowStatus_ARCHIVED               RowStatus = 2
)

func (RowStatus) Descriptor

func (RowStatus) Descriptor() protoreflect.EnumDescriptor

func (RowStatus) Enum

func (x RowStatus) Enum() *RowStatus

func (RowStatus) EnumDescriptor deprecated

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

Deprecated: Use RowStatus.Descriptor instead.

func (RowStatus) Number

func (x RowStatus) Number() protoreflect.EnumNumber

func (RowStatus) String

func (x RowStatus) String() string

func (RowStatus) Type

type 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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetCreatorId

func (x *Tag) GetCreatorId() int32

func (*Tag) GetName

func (x *Tag) GetName() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

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) ListMemos

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

type UnimplementedSystemServiceServer

type UnimplementedSystemServiceServer struct {
}

UnimplementedSystemServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSystemServiceServer) GetSystemInfo

func (UnimplementedSystemServiceServer) UpdateSystemInfo added in v0.15.0

type UnimplementedTagServiceServer

type UnimplementedTagServiceServer struct {
}

UnimplementedTagServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTagServiceServer) ListTags

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUserAccessToken added in v0.15.0

func (UnimplementedUserServiceServer) DeleteUserAccessToken added in v0.15.0

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUserAccessTokens added in v0.15.0

func (UnimplementedUserServiceServer) UpdateUser added in v0.15.0

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetCreateTime added in v0.15.0

func (x *User) GetCreateTime() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetNickname

func (x *User) GetNickname() string

func (*User) GetPassword added in v0.15.0

func (x *User) GetPassword() string

func (*User) GetRole

func (x *User) GetRole() User_Role

func (*User) GetRowStatus

func (x *User) GetRowStatus() RowStatus

func (*User) GetUpdateTime added in v0.15.0

func (x *User) GetUpdateTime() *timestamppb.Timestamp

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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.

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
const (
	User_ROLE_UNSPECIFIED User_Role = 0
	User_HOST             User_Role = 1
	User_ADMIN            User_Role = 2
	User_USER             User_Role = 3
)

func (User_Role) Descriptor added in v0.15.0

func (User_Role) Descriptor() protoreflect.EnumDescriptor

func (User_Role) Enum added in v0.15.0

func (x User_Role) Enum() *User_Role

func (User_Role) EnumDescriptor deprecated added in v0.15.0

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

Deprecated: Use User_Role.Descriptor instead.

func (User_Role) Number added in v0.15.0

func (x User_Role) Number() protoreflect.EnumNumber

func (User_Role) String added in v0.15.0

func (x User_Role) String() string

func (User_Role) Type added in v0.15.0

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

Jump to

Keyboard shortcuts

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