Documentation ¶
Overview ¶
Package postaradminv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package postaradminv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package postaradminv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error
- func RegisterAccountServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServiceServer) error
- func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
- func RegisterSpaceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSpaceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SpaceServiceClient) error
- func RegisterSpaceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSpaceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SpaceServiceServer) error
- func RegisterSpaceServiceServer(s grpc.ServiceRegistrar, srv SpaceServiceServer)
- func RegisterTemplateServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTemplateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TemplateServiceClient) error
- func RegisterTemplateServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTemplateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TemplateServiceServer) error
- func RegisterTemplateServiceServer(s grpc.ServiceRegistrar, srv TemplateServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetCreateTime() int64
- func (x *Account) GetHost() string
- func (x *Account) GetId() int32
- func (x *Account) GetPassword() string
- func (x *Account) GetPort() int32
- func (x *Account) GetSmtpAuth() SMTPAuth
- func (x *Account) GetState() AccountState
- func (x *Account) GetUpdateTime() int64
- func (x *Account) GetUsername() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountServiceClient
- type AccountServiceServer
- type AccountState
- func (AccountState) Descriptor() protoreflect.EnumDescriptor
- func (x AccountState) Enum() *AccountState
- func (AccountState) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountState) Number() protoreflect.EnumNumber
- func (x AccountState) String() string
- func (AccountState) Type() protoreflect.EnumType
- type CreateAccountRequest
- func (*CreateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountRequest) GetAccount() *Account
- func (*CreateAccountRequest) ProtoMessage()
- func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAccountRequest) Reset()
- func (x *CreateAccountRequest) String() string
- type CreateAccountResponse
- func (*CreateAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountResponse) GetAccount() *Account
- func (*CreateAccountResponse) ProtoMessage()
- func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAccountResponse) Reset()
- func (x *CreateAccountResponse) String() string
- type CreateSpaceRequest
- func (*CreateSpaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSpaceRequest) GetSpace() *Space
- func (*CreateSpaceRequest) ProtoMessage()
- func (x *CreateSpaceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSpaceRequest) Reset()
- func (x *CreateSpaceRequest) String() string
- type CreateSpaceResponse
- func (*CreateSpaceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSpaceResponse) GetSpace() *Space
- func (*CreateSpaceResponse) ProtoMessage()
- func (x *CreateSpaceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSpaceResponse) Reset()
- func (x *CreateSpaceResponse) String() string
- type CreateTemplateRequest
- func (*CreateTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTemplateRequest) GetTemplate() *Template
- func (*CreateTemplateRequest) ProtoMessage()
- func (x *CreateTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTemplateRequest) Reset()
- func (x *CreateTemplateRequest) String() string
- type CreateTemplateResponse
- func (*CreateTemplateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTemplateResponse) GetTemplate() *Template
- func (*CreateTemplateResponse) ProtoMessage()
- func (x *CreateTemplateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTemplateResponse) Reset()
- func (x *CreateTemplateResponse) String() string
- type DeleteTemplateRequest
- func (*DeleteTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTemplateRequest) GetTemplateId() int64
- func (*DeleteTemplateRequest) ProtoMessage()
- func (x *DeleteTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTemplateRequest) Reset()
- func (x *DeleteTemplateRequest) String() string
- type DeleteTemplateResponse
- type EmailContentType
- func (EmailContentType) Descriptor() protoreflect.EnumDescriptor
- func (x EmailContentType) Enum() *EmailContentType
- func (EmailContentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x EmailContentType) Number() protoreflect.EnumNumber
- func (x EmailContentType) String() string
- func (EmailContentType) Type() protoreflect.EnumType
- type GetAccountRequest
- func (*GetAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountRequest) GetAccountId() int32
- func (x *GetAccountRequest) GetWithPassword() bool
- func (*GetAccountRequest) ProtoMessage()
- func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountRequest) Reset()
- func (x *GetAccountRequest) String() string
- type GetAccountResponse
- func (*GetAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountResponse) GetAccount() *Account
- func (*GetAccountResponse) ProtoMessage()
- func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountResponse) Reset()
- func (x *GetAccountResponse) String() string
- type GetSpaceRequest
- func (*GetSpaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSpaceRequest) GetSpaceId() int32
- func (x *GetSpaceRequest) GetWithToken() bool
- func (*GetSpaceRequest) ProtoMessage()
- func (x *GetSpaceRequest) ProtoReflect() protoreflect.Message
- func (x *GetSpaceRequest) Reset()
- func (x *GetSpaceRequest) String() string
- type GetSpaceResponse
- type GetTemplateRequest
- func (*GetTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTemplateRequest) GetTemplateId() int64
- func (*GetTemplateRequest) ProtoMessage()
- func (x *GetTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *GetTemplateRequest) Reset()
- func (x *GetTemplateRequest) String() string
- type GetTemplateResponse
- func (*GetTemplateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTemplateResponse) GetTemplate() *Template
- func (*GetTemplateResponse) ProtoMessage()
- func (x *GetTemplateResponse) ProtoReflect() protoreflect.Message
- func (x *GetTemplateResponse) Reset()
- func (x *GetTemplateResponse) String() string
- type ListAccountsFilter
- func (*ListAccountsFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsFilter) GetAccountHost() string
- func (x *ListAccountsFilter) GetAccountId() int32
- func (x *ListAccountsFilter) GetAccountState() AccountState
- func (x *ListAccountsFilter) GetAccountUsername() string
- func (*ListAccountsFilter) ProtoMessage()
- func (x *ListAccountsFilter) ProtoReflect() protoreflect.Message
- func (x *ListAccountsFilter) Reset()
- func (x *ListAccountsFilter) String() string
- type ListAccountsRequest
- func (*ListAccountsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsRequest) GetFilter() *ListAccountsFilter
- func (x *ListAccountsRequest) GetPageSize() int32
- func (x *ListAccountsRequest) GetPageToken() string
- func (*ListAccountsRequest) ProtoMessage()
- func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAccountsRequest) Reset()
- func (x *ListAccountsRequest) String() string
- type ListAccountsResponse
- func (*ListAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsResponse) GetAccounts() []*Account
- func (x *ListAccountsResponse) GetNextPageToken() string
- func (*ListAccountsResponse) ProtoMessage()
- func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAccountsResponse) Reset()
- func (x *ListAccountsResponse) String() string
- type ListSpacesFilter
- func (*ListSpacesFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ListSpacesFilter) GetSpaceId() int32
- func (x *ListSpacesFilter) GetSpaceName() string
- func (x *ListSpacesFilter) GetSpaceState() SpaceState
- func (*ListSpacesFilter) ProtoMessage()
- func (x *ListSpacesFilter) ProtoReflect() protoreflect.Message
- func (x *ListSpacesFilter) Reset()
- func (x *ListSpacesFilter) String() string
- type ListSpacesRequest
- func (*ListSpacesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSpacesRequest) GetFilter() *ListSpacesFilter
- func (x *ListSpacesRequest) GetPageSize() int32
- func (x *ListSpacesRequest) GetPageToken() string
- func (*ListSpacesRequest) ProtoMessage()
- func (x *ListSpacesRequest) ProtoReflect() protoreflect.Message
- func (x *ListSpacesRequest) Reset()
- func (x *ListSpacesRequest) String() string
- type ListSpacesResponse
- func (*ListSpacesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSpacesResponse) GetNextPageToken() string
- func (x *ListSpacesResponse) GetSpaces() []*Space
- func (*ListSpacesResponse) ProtoMessage()
- func (x *ListSpacesResponse) ProtoReflect() protoreflect.Message
- func (x *ListSpacesResponse) Reset()
- func (x *ListSpacesResponse) String() string
- type ListTemplatesFilter
- func (*ListTemplatesFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ListTemplatesFilter) GetAccountId() int32
- func (x *ListTemplatesFilter) GetEmailSubject() string
- func (x *ListTemplatesFilter) GetTemplateId() int64
- func (x *ListTemplatesFilter) GetTemplateName() string
- func (x *ListTemplatesFilter) GetTemplateState() TemplateState
- func (*ListTemplatesFilter) ProtoMessage()
- func (x *ListTemplatesFilter) ProtoReflect() protoreflect.Message
- func (x *ListTemplatesFilter) Reset()
- func (x *ListTemplatesFilter) String() string
- type ListTemplatesRequest
- func (*ListTemplatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTemplatesRequest) GetFilter() *ListTemplatesFilter
- func (x *ListTemplatesRequest) GetPageSize() int32
- func (x *ListTemplatesRequest) GetPageToken() string
- func (*ListTemplatesRequest) ProtoMessage()
- func (x *ListTemplatesRequest) ProtoReflect() protoreflect.Message
- func (x *ListTemplatesRequest) Reset()
- func (x *ListTemplatesRequest) String() string
- type ListTemplatesResponse
- func (*ListTemplatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTemplatesResponse) GetNextPageToken() string
- func (x *ListTemplatesResponse) GetTemplates() []*Template
- func (*ListTemplatesResponse) ProtoMessage()
- func (x *ListTemplatesResponse) ProtoReflect() protoreflect.Message
- func (x *ListTemplatesResponse) Reset()
- func (x *ListTemplatesResponse) String() string
- type SMTPAuth
- type Space
- func (*Space) Descriptor() ([]byte, []int)deprecated
- func (x *Space) GetCreateTime() int64
- func (x *Space) GetId() int32
- func (x *Space) GetName() string
- func (x *Space) GetState() SpaceState
- func (x *Space) GetToken() string
- func (x *Space) GetUpdateTime() int64
- func (*Space) ProtoMessage()
- func (x *Space) ProtoReflect() protoreflect.Message
- func (x *Space) Reset()
- func (x *Space) String() string
- type SpaceServiceClient
- type SpaceServiceServer
- type SpaceState
- type Template
- func (*Template) Descriptor() ([]byte, []int)deprecated
- func (x *Template) GetAccountId() int32
- func (x *Template) GetCreateTime() int64
- func (x *Template) GetDescription() string
- func (x *Template) GetEmail() *TemplateEmail
- func (x *Template) GetId() int64
- func (x *Template) GetName() string
- func (x *Template) GetState() TemplateState
- func (x *Template) GetUpdateTime() int64
- func (*Template) ProtoMessage()
- func (x *Template) ProtoReflect() protoreflect.Message
- func (x *Template) Reset()
- func (x *Template) String() string
- type TemplateEmail
- func (*TemplateEmail) Descriptor() ([]byte, []int)deprecated
- func (x *TemplateEmail) GetBcc() []string
- func (x *TemplateEmail) GetCc() []string
- func (x *TemplateEmail) GetContent() string
- func (x *TemplateEmail) GetContentType() EmailContentType
- func (x *TemplateEmail) GetSubject() string
- func (x *TemplateEmail) GetTo() []string
- func (*TemplateEmail) ProtoMessage()
- func (x *TemplateEmail) ProtoReflect() protoreflect.Message
- func (x *TemplateEmail) Reset()
- func (x *TemplateEmail) String() string
- type TemplateServiceClient
- type TemplateServiceServer
- type TemplateState
- func (TemplateState) Descriptor() protoreflect.EnumDescriptor
- func (x TemplateState) Enum() *TemplateState
- func (TemplateState) EnumDescriptor() ([]byte, []int)deprecated
- func (x TemplateState) Number() protoreflect.EnumNumber
- func (x TemplateState) String() string
- func (TemplateState) Type() protoreflect.EnumType
- type UnimplementedAccountServiceServer
- func (UnimplementedAccountServiceServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
- func (UnimplementedAccountServiceServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
- func (UnimplementedAccountServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
- func (UnimplementedAccountServiceServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error)
- type UnimplementedSpaceServiceServer
- func (UnimplementedSpaceServiceServer) CreateSpace(context.Context, *CreateSpaceRequest) (*CreateSpaceResponse, error)
- func (UnimplementedSpaceServiceServer) GetSpace(context.Context, *GetSpaceRequest) (*GetSpaceResponse, error)
- func (UnimplementedSpaceServiceServer) ListSpaces(context.Context, *ListSpacesRequest) (*ListSpacesResponse, error)
- func (UnimplementedSpaceServiceServer) UpdateSpace(context.Context, *UpdateSpaceRequest) (*UpdateSpaceResponse, error)
- type UnimplementedTemplateServiceServer
- func (UnimplementedTemplateServiceServer) CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error)
- func (UnimplementedTemplateServiceServer) DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateResponse, error)
- func (UnimplementedTemplateServiceServer) GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateResponse, error)
- func (UnimplementedTemplateServiceServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error)
- func (UnimplementedTemplateServiceServer) UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateResponse, error)
- type UnsafeAccountServiceServer
- type UnsafeSpaceServiceServer
- type UnsafeTemplateServiceServer
- type UpdateAccountRequest
- func (*UpdateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAccountRequest) GetAccount() *Account
- func (*UpdateAccountRequest) ProtoMessage()
- func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAccountRequest) Reset()
- func (x *UpdateAccountRequest) String() string
- type UpdateAccountResponse
- func (*UpdateAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAccountResponse) GetAccount() *Account
- func (*UpdateAccountResponse) ProtoMessage()
- func (x *UpdateAccountResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateAccountResponse) Reset()
- func (x *UpdateAccountResponse) String() string
- type UpdateSpaceRequest
- func (*UpdateSpaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSpaceRequest) GetSpace() *Space
- func (*UpdateSpaceRequest) ProtoMessage()
- func (x *UpdateSpaceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSpaceRequest) Reset()
- func (x *UpdateSpaceRequest) String() string
- type UpdateSpaceResponse
- func (*UpdateSpaceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSpaceResponse) GetSpace() *Space
- func (*UpdateSpaceResponse) ProtoMessage()
- func (x *UpdateSpaceResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateSpaceResponse) Reset()
- func (x *UpdateSpaceResponse) String() string
- type UpdateTemplateRequest
- func (*UpdateTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTemplateRequest) GetTemplate() *Template
- func (*UpdateTemplateRequest) ProtoMessage()
- func (x *UpdateTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTemplateRequest) Reset()
- func (x *UpdateTemplateRequest) String() string
- type UpdateTemplateResponse
- func (*UpdateTemplateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTemplateResponse) GetTemplate() *Template
- func (*UpdateTemplateResponse) ProtoMessage()
- func (x *UpdateTemplateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateTemplateResponse) Reset()
- func (x *UpdateTemplateResponse) String() string
Constants ¶
const ( AccountService_CreateAccount_FullMethodName = "/postaradmin.v1.AccountService/CreateAccount" AccountService_UpdateAccount_FullMethodName = "/postaradmin.v1.AccountService/UpdateAccount" AccountService_GetAccount_FullMethodName = "/postaradmin.v1.AccountService/GetAccount" AccountService_ListAccounts_FullMethodName = "/postaradmin.v1.AccountService/ListAccounts" )
const ( SpaceService_CreateSpace_FullMethodName = "/postaradmin.v1.SpaceService/CreateSpace" SpaceService_UpdateSpace_FullMethodName = "/postaradmin.v1.SpaceService/UpdateSpace" SpaceService_GetSpace_FullMethodName = "/postaradmin.v1.SpaceService/GetSpace" SpaceService_ListSpaces_FullMethodName = "/postaradmin.v1.SpaceService/ListSpaces" )
const ( TemplateService_CreateTemplate_FullMethodName = "/postaradmin.v1.TemplateService/CreateTemplate" TemplateService_UpdateTemplate_FullMethodName = "/postaradmin.v1.TemplateService/UpdateTemplate" TemplateService_GetTemplate_FullMethodName = "/postaradmin.v1.TemplateService/GetTemplate" TemplateService_ListTemplates_FullMethodName = "/postaradmin.v1.TemplateService/ListTemplates" TemplateService_DeleteTemplate_FullMethodName = "/postaradmin.v1.TemplateService/DeleteTemplate" )
Variables ¶
var ( SMTPAuth_name = map[int32]string{ 0: "SMTP_AUTH_UNSPECIFIED", 1: "SMTP_AUTH_PLAIN", 2: "SMTP_AUTH_LOGIN", 3: "SMTP_AUTH_CRAM_MD5", 4: "SMTP_AUTH_XOAUTH2", } SMTPAuth_value = map[string]int32{ "SMTP_AUTH_UNSPECIFIED": 0, "SMTP_AUTH_PLAIN": 1, "SMTP_AUTH_LOGIN": 2, "SMTP_AUTH_CRAM_MD5": 3, "SMTP_AUTH_XOAUTH2": 4, } )
Enum value maps for SMTPAuth.
var ( AccountState_name = map[int32]string{ 0: "ACCOUNT_STATE_UNSPECIFIED", 1: "ACCOUNT_STATE_DISABLED", 2: "ACCOUNT_STATE_ENABLED", } AccountState_value = map[string]int32{ "ACCOUNT_STATE_UNSPECIFIED": 0, "ACCOUNT_STATE_DISABLED": 1, "ACCOUNT_STATE_ENABLED": 2, } )
Enum value maps for AccountState.
var ( SpaceState_name = map[int32]string{ 0: "SPACE_STATE_UNSPECIFIED", 1: "SPACE_STATE_DISABLED", 2: "SPACE_STATE_ENABLED", } SpaceState_value = map[string]int32{ "SPACE_STATE_UNSPECIFIED": 0, "SPACE_STATE_DISABLED": 1, "SPACE_STATE_ENABLED": 2, } )
Enum value maps for SpaceState.
var ( EmailContentType_name = map[int32]string{ 0: "EMAIL_CONTENT_TYPE_UNSPECIFIED", 1: "EMAIL_CONTENT_TYPE_PLAIN", 2: "EMAIL_CONTENT_TYPE_HTML", } EmailContentType_value = map[string]int32{ "EMAIL_CONTENT_TYPE_UNSPECIFIED": 0, "EMAIL_CONTENT_TYPE_PLAIN": 1, "EMAIL_CONTENT_TYPE_HTML": 2, } )
Enum value maps for EmailContentType.
var ( TemplateState_name = map[int32]string{ 0: "TEMPLATE_STATE_UNSPECIFIED", 1: "TEMPLATE_STATE_DELETED", 2: "TEMPLATE_STATE_DISABLED", 3: "TEMPLATE_STATE_ENABLED", } TemplateState_value = map[string]int32{ "TEMPLATE_STATE_UNSPECIFIED": 0, "TEMPLATE_STATE_DELETED": 1, "TEMPLATE_STATE_DISABLED": 2, "TEMPLATE_STATE_ENABLED": 3, } )
Enum value maps for TemplateState.
var AccountService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "postaradmin.v1.AccountService", HandlerType: (*AccountServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAccount", Handler: _AccountService_CreateAccount_Handler, }, { MethodName: "UpdateAccount", Handler: _AccountService_UpdateAccount_Handler, }, { MethodName: "GetAccount", Handler: _AccountService_GetAccount_Handler, }, { MethodName: "ListAccounts", Handler: _AccountService_ListAccounts_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "postaradmin/v1/account_service.proto", }
AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_postaradmin_v1_account_proto protoreflect.FileDescriptor
var File_postaradmin_v1_account_service_proto protoreflect.FileDescriptor
var File_postaradmin_v1_space_proto protoreflect.FileDescriptor
var File_postaradmin_v1_space_service_proto protoreflect.FileDescriptor
var File_postaradmin_v1_template_proto protoreflect.FileDescriptor
var File_postaradmin_v1_template_service_proto protoreflect.FileDescriptor
var SpaceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "postaradmin.v1.SpaceService", HandlerType: (*SpaceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateSpace", Handler: _SpaceService_CreateSpace_Handler, }, { MethodName: "UpdateSpace", Handler: _SpaceService_UpdateSpace_Handler, }, { MethodName: "GetSpace", Handler: _SpaceService_GetSpace_Handler, }, { MethodName: "ListSpaces", Handler: _SpaceService_ListSpaces_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "postaradmin/v1/space_service.proto", }
SpaceService_ServiceDesc is the grpc.ServiceDesc for SpaceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TemplateService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "postaradmin.v1.TemplateService", HandlerType: (*TemplateServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateTemplate", Handler: _TemplateService_CreateTemplate_Handler, }, { MethodName: "UpdateTemplate", Handler: _TemplateService_UpdateTemplate_Handler, }, { MethodName: "GetTemplate", Handler: _TemplateService_GetTemplate_Handler, }, { MethodName: "ListTemplates", Handler: _TemplateService_ListTemplates_Handler, }, { MethodName: "DeleteTemplate", Handler: _TemplateService_DeleteTemplate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "postaradmin/v1/template_service.proto", }
TemplateService_ServiceDesc is the grpc.ServiceDesc for TemplateService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAccountServiceHandler ¶
func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAccountServiceHandler registers the http handlers for service AccountService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAccountServiceHandlerClient ¶
func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error
RegisterAccountServiceHandlerClient registers the http handlers for service AccountService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountServiceClient" to call the correct interceptors.
func RegisterAccountServiceHandlerFromEndpoint ¶
func RegisterAccountServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAccountServiceHandlerFromEndpoint is same as RegisterAccountServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAccountServiceHandlerServer ¶
func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServiceServer) error
RegisterAccountServiceHandlerServer registers the http handlers for service AccountService to "mux". UnaryRPC :call AccountServiceServer 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 RegisterAccountServiceHandlerFromEndpoint instead.
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
func RegisterSpaceServiceHandler ¶
func RegisterSpaceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSpaceServiceHandler registers the http handlers for service SpaceService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSpaceServiceHandlerClient ¶
func RegisterSpaceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SpaceServiceClient) error
RegisterSpaceServiceHandlerClient registers the http handlers for service SpaceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SpaceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SpaceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SpaceServiceClient" to call the correct interceptors.
func RegisterSpaceServiceHandlerFromEndpoint ¶
func RegisterSpaceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSpaceServiceHandlerFromEndpoint is same as RegisterSpaceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSpaceServiceHandlerServer ¶
func RegisterSpaceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SpaceServiceServer) error
RegisterSpaceServiceHandlerServer registers the http handlers for service SpaceService to "mux". UnaryRPC :call SpaceServiceServer 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 RegisterSpaceServiceHandlerFromEndpoint instead.
func RegisterSpaceServiceServer ¶
func RegisterSpaceServiceServer(s grpc.ServiceRegistrar, srv SpaceServiceServer)
func RegisterTemplateServiceHandler ¶
func RegisterTemplateServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTemplateServiceHandler registers the http handlers for service TemplateService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTemplateServiceHandlerClient ¶
func RegisterTemplateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TemplateServiceClient) error
RegisterTemplateServiceHandlerClient registers the http handlers for service TemplateService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TemplateServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TemplateServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TemplateServiceClient" to call the correct interceptors.
func RegisterTemplateServiceHandlerFromEndpoint ¶
func RegisterTemplateServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTemplateServiceHandlerFromEndpoint is same as RegisterTemplateServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTemplateServiceHandlerServer ¶
func RegisterTemplateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TemplateServiceServer) error
RegisterTemplateServiceHandlerServer registers the http handlers for service TemplateService to "mux". UnaryRPC :call TemplateServiceServer 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 RegisterTemplateServiceHandlerFromEndpoint instead.
func RegisterTemplateServiceServer ¶
func RegisterTemplateServiceServer(s grpc.ServiceRegistrar, srv TemplateServiceServer)
Types ¶
type Account ¶
type Account struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` SmtpAuth SMTPAuth `protobuf:"varint,6,opt,name=smtp_auth,json=smtpAuth,proto3,enum=postaradmin.v1.SMTPAuth" json:"smtp_auth,omitempty"` State AccountState `protobuf:"varint,7,opt,name=state,proto3,enum=postaradmin.v1.AccountState" json:"state,omitempty"` CreateTime int64 `protobuf:"varint,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime int64 `protobuf:"varint,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetCreateTime ¶
func (*Account) GetPassword ¶
func (*Account) GetSmtpAuth ¶
func (*Account) GetState ¶
func (x *Account) GetState() AccountState
func (*Account) GetUpdateTime ¶
func (*Account) GetUsername ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountServiceClient ¶
type AccountServiceClient interface { CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) }
AccountServiceClient is the client API for AccountService 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 NewAccountServiceClient ¶
func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient
type AccountServiceServer ¶
type AccountServiceServer interface { CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) // contains filtered or unexported methods }
AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility
type AccountState ¶
type AccountState int32
const ( AccountState_ACCOUNT_STATE_UNSPECIFIED AccountState = 0 AccountState_ACCOUNT_STATE_DISABLED AccountState = 1 AccountState_ACCOUNT_STATE_ENABLED AccountState = 2 )
func (AccountState) Descriptor ¶
func (AccountState) Descriptor() protoreflect.EnumDescriptor
func (AccountState) Enum ¶
func (x AccountState) Enum() *AccountState
func (AccountState) EnumDescriptor
deprecated
func (AccountState) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountState.Descriptor instead.
func (AccountState) Number ¶
func (x AccountState) Number() protoreflect.EnumNumber
func (AccountState) String ¶
func (x AccountState) String() string
func (AccountState) Type ¶
func (AccountState) Type() protoreflect.EnumType
type CreateAccountRequest ¶
type CreateAccountRequest struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountRequest) Descriptor
deprecated
func (*CreateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.
func (*CreateAccountRequest) GetAccount ¶
func (x *CreateAccountRequest) GetAccount() *Account
func (*CreateAccountRequest) ProtoMessage ¶
func (*CreateAccountRequest) ProtoMessage()
func (*CreateAccountRequest) ProtoReflect ¶
func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
func (*CreateAccountRequest) Reset ¶
func (x *CreateAccountRequest) Reset()
func (*CreateAccountRequest) String ¶
func (x *CreateAccountRequest) String() string
type CreateAccountResponse ¶
type CreateAccountResponse struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountResponse) Descriptor
deprecated
func (*CreateAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.
func (*CreateAccountResponse) GetAccount ¶
func (x *CreateAccountResponse) GetAccount() *Account
func (*CreateAccountResponse) ProtoMessage ¶
func (*CreateAccountResponse) ProtoMessage()
func (*CreateAccountResponse) ProtoReflect ¶
func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message
func (*CreateAccountResponse) Reset ¶
func (x *CreateAccountResponse) Reset()
func (*CreateAccountResponse) String ¶
func (x *CreateAccountResponse) String() string
type CreateSpaceRequest ¶
type CreateSpaceRequest struct { Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"` // contains filtered or unexported fields }
func (*CreateSpaceRequest) Descriptor
deprecated
func (*CreateSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSpaceRequest.ProtoReflect.Descriptor instead.
func (*CreateSpaceRequest) GetSpace ¶
func (x *CreateSpaceRequest) GetSpace() *Space
func (*CreateSpaceRequest) ProtoMessage ¶
func (*CreateSpaceRequest) ProtoMessage()
func (*CreateSpaceRequest) ProtoReflect ¶
func (x *CreateSpaceRequest) ProtoReflect() protoreflect.Message
func (*CreateSpaceRequest) Reset ¶
func (x *CreateSpaceRequest) Reset()
func (*CreateSpaceRequest) String ¶
func (x *CreateSpaceRequest) String() string
type CreateSpaceResponse ¶
type CreateSpaceResponse struct { Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"` // contains filtered or unexported fields }
func (*CreateSpaceResponse) Descriptor
deprecated
func (*CreateSpaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSpaceResponse.ProtoReflect.Descriptor instead.
func (*CreateSpaceResponse) GetSpace ¶
func (x *CreateSpaceResponse) GetSpace() *Space
func (*CreateSpaceResponse) ProtoMessage ¶
func (*CreateSpaceResponse) ProtoMessage()
func (*CreateSpaceResponse) ProtoReflect ¶
func (x *CreateSpaceResponse) ProtoReflect() protoreflect.Message
func (*CreateSpaceResponse) Reset ¶
func (x *CreateSpaceResponse) Reset()
func (*CreateSpaceResponse) String ¶
func (x *CreateSpaceResponse) String() string
type CreateTemplateRequest ¶
type CreateTemplateRequest struct { Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` // contains filtered or unexported fields }
func (*CreateTemplateRequest) Descriptor
deprecated
func (*CreateTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTemplateRequest.ProtoReflect.Descriptor instead.
func (*CreateTemplateRequest) GetTemplate ¶
func (x *CreateTemplateRequest) GetTemplate() *Template
func (*CreateTemplateRequest) ProtoMessage ¶
func (*CreateTemplateRequest) ProtoMessage()
func (*CreateTemplateRequest) ProtoReflect ¶
func (x *CreateTemplateRequest) ProtoReflect() protoreflect.Message
func (*CreateTemplateRequest) Reset ¶
func (x *CreateTemplateRequest) Reset()
func (*CreateTemplateRequest) String ¶
func (x *CreateTemplateRequest) String() string
type CreateTemplateResponse ¶
type CreateTemplateResponse struct { Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` // contains filtered or unexported fields }
func (*CreateTemplateResponse) Descriptor
deprecated
func (*CreateTemplateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTemplateResponse.ProtoReflect.Descriptor instead.
func (*CreateTemplateResponse) GetTemplate ¶
func (x *CreateTemplateResponse) GetTemplate() *Template
func (*CreateTemplateResponse) ProtoMessage ¶
func (*CreateTemplateResponse) ProtoMessage()
func (*CreateTemplateResponse) ProtoReflect ¶
func (x *CreateTemplateResponse) ProtoReflect() protoreflect.Message
func (*CreateTemplateResponse) Reset ¶
func (x *CreateTemplateResponse) Reset()
func (*CreateTemplateResponse) String ¶
func (x *CreateTemplateResponse) String() string
type DeleteTemplateRequest ¶
type DeleteTemplateRequest struct { TemplateId int64 `protobuf:"varint,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTemplateRequest) Descriptor
deprecated
func (*DeleteTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTemplateRequest.ProtoReflect.Descriptor instead.
func (*DeleteTemplateRequest) GetTemplateId ¶
func (x *DeleteTemplateRequest) GetTemplateId() int64
func (*DeleteTemplateRequest) ProtoMessage ¶
func (*DeleteTemplateRequest) ProtoMessage()
func (*DeleteTemplateRequest) ProtoReflect ¶
func (x *DeleteTemplateRequest) ProtoReflect() protoreflect.Message
func (*DeleteTemplateRequest) Reset ¶
func (x *DeleteTemplateRequest) Reset()
func (*DeleteTemplateRequest) String ¶
func (x *DeleteTemplateRequest) String() string
type DeleteTemplateResponse ¶
type DeleteTemplateResponse struct {
// contains filtered or unexported fields
}
func (*DeleteTemplateResponse) Descriptor
deprecated
func (*DeleteTemplateResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTemplateResponse.ProtoReflect.Descriptor instead.
func (*DeleteTemplateResponse) ProtoMessage ¶
func (*DeleteTemplateResponse) ProtoMessage()
func (*DeleteTemplateResponse) ProtoReflect ¶
func (x *DeleteTemplateResponse) ProtoReflect() protoreflect.Message
func (*DeleteTemplateResponse) Reset ¶
func (x *DeleteTemplateResponse) Reset()
func (*DeleteTemplateResponse) String ¶
func (x *DeleteTemplateResponse) String() string
type EmailContentType ¶
type EmailContentType int32
const ( EmailContentType_EMAIL_CONTENT_TYPE_UNSPECIFIED EmailContentType = 0 EmailContentType_EMAIL_CONTENT_TYPE_PLAIN EmailContentType = 1 EmailContentType_EMAIL_CONTENT_TYPE_HTML EmailContentType = 2 )
func (EmailContentType) Descriptor ¶
func (EmailContentType) Descriptor() protoreflect.EnumDescriptor
func (EmailContentType) Enum ¶
func (x EmailContentType) Enum() *EmailContentType
func (EmailContentType) EnumDescriptor
deprecated
func (EmailContentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use EmailContentType.Descriptor instead.
func (EmailContentType) Number ¶
func (x EmailContentType) Number() protoreflect.EnumNumber
func (EmailContentType) String ¶
func (x EmailContentType) String() string
func (EmailContentType) Type ¶
func (EmailContentType) Type() protoreflect.EnumType
type GetAccountRequest ¶
type GetAccountRequest struct { AccountId int32 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` WithPassword bool `protobuf:"varint,2,opt,name=with_password,json=withPassword,proto3" json:"with_password,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetAccountId ¶
func (x *GetAccountRequest) GetAccountId() int32
func (*GetAccountRequest) GetWithPassword ¶
func (x *GetAccountRequest) GetWithPassword() bool
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
type GetAccountResponse ¶
type GetAccountResponse struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetAccountResponse) Descriptor
deprecated
func (*GetAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.
func (*GetAccountResponse) GetAccount ¶
func (x *GetAccountResponse) GetAccount() *Account
func (*GetAccountResponse) ProtoMessage ¶
func (*GetAccountResponse) ProtoMessage()
func (*GetAccountResponse) ProtoReflect ¶
func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
func (*GetAccountResponse) Reset ¶
func (x *GetAccountResponse) Reset()
func (*GetAccountResponse) String ¶
func (x *GetAccountResponse) String() string
type GetSpaceRequest ¶
type GetSpaceRequest struct { SpaceId int32 `protobuf:"varint,1,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` WithToken bool `protobuf:"varint,2,opt,name=with_token,json=withToken,proto3" json:"with_token,omitempty"` // contains filtered or unexported fields }
func (*GetSpaceRequest) Descriptor
deprecated
func (*GetSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSpaceRequest.ProtoReflect.Descriptor instead.
func (*GetSpaceRequest) GetSpaceId ¶
func (x *GetSpaceRequest) GetSpaceId() int32
func (*GetSpaceRequest) GetWithToken ¶
func (x *GetSpaceRequest) GetWithToken() bool
func (*GetSpaceRequest) ProtoMessage ¶
func (*GetSpaceRequest) ProtoMessage()
func (*GetSpaceRequest) ProtoReflect ¶
func (x *GetSpaceRequest) ProtoReflect() protoreflect.Message
func (*GetSpaceRequest) Reset ¶
func (x *GetSpaceRequest) Reset()
func (*GetSpaceRequest) String ¶
func (x *GetSpaceRequest) String() string
type GetSpaceResponse ¶
type GetSpaceResponse struct { Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"` // contains filtered or unexported fields }
func (*GetSpaceResponse) Descriptor
deprecated
func (*GetSpaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSpaceResponse.ProtoReflect.Descriptor instead.
func (*GetSpaceResponse) GetSpace ¶
func (x *GetSpaceResponse) GetSpace() *Space
func (*GetSpaceResponse) ProtoMessage ¶
func (*GetSpaceResponse) ProtoMessage()
func (*GetSpaceResponse) ProtoReflect ¶
func (x *GetSpaceResponse) ProtoReflect() protoreflect.Message
func (*GetSpaceResponse) Reset ¶
func (x *GetSpaceResponse) Reset()
func (*GetSpaceResponse) String ¶
func (x *GetSpaceResponse) String() string
type GetTemplateRequest ¶
type GetTemplateRequest struct { TemplateId int64 `protobuf:"varint,1,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` // contains filtered or unexported fields }
func (*GetTemplateRequest) Descriptor
deprecated
func (*GetTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTemplateRequest.ProtoReflect.Descriptor instead.
func (*GetTemplateRequest) GetTemplateId ¶
func (x *GetTemplateRequest) GetTemplateId() int64
func (*GetTemplateRequest) ProtoMessage ¶
func (*GetTemplateRequest) ProtoMessage()
func (*GetTemplateRequest) ProtoReflect ¶
func (x *GetTemplateRequest) ProtoReflect() protoreflect.Message
func (*GetTemplateRequest) Reset ¶
func (x *GetTemplateRequest) Reset()
func (*GetTemplateRequest) String ¶
func (x *GetTemplateRequest) String() string
type GetTemplateResponse ¶
type GetTemplateResponse struct { Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` // contains filtered or unexported fields }
func (*GetTemplateResponse) Descriptor
deprecated
func (*GetTemplateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTemplateResponse.ProtoReflect.Descriptor instead.
func (*GetTemplateResponse) GetTemplate ¶
func (x *GetTemplateResponse) GetTemplate() *Template
func (*GetTemplateResponse) ProtoMessage ¶
func (*GetTemplateResponse) ProtoMessage()
func (*GetTemplateResponse) ProtoReflect ¶
func (x *GetTemplateResponse) ProtoReflect() protoreflect.Message
func (*GetTemplateResponse) Reset ¶
func (x *GetTemplateResponse) Reset()
func (*GetTemplateResponse) String ¶
func (x *GetTemplateResponse) String() string
type ListAccountsFilter ¶
type ListAccountsFilter struct { AccountId int32 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountUsername string `protobuf:"bytes,2,opt,name=account_username,json=accountUsername,proto3" json:"account_username,omitempty"` AccountHost string `protobuf:"bytes,3,opt,name=account_host,json=accountHost,proto3" json:"account_host,omitempty"` AccountState AccountState `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListAccountsFilter) Descriptor
deprecated
func (*ListAccountsFilter) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsFilter.ProtoReflect.Descriptor instead.
func (*ListAccountsFilter) GetAccountHost ¶
func (x *ListAccountsFilter) GetAccountHost() string
func (*ListAccountsFilter) GetAccountId ¶
func (x *ListAccountsFilter) GetAccountId() int32
func (*ListAccountsFilter) GetAccountState ¶
func (x *ListAccountsFilter) GetAccountState() AccountState
func (*ListAccountsFilter) GetAccountUsername ¶
func (x *ListAccountsFilter) GetAccountUsername() string
func (*ListAccountsFilter) ProtoMessage ¶
func (*ListAccountsFilter) ProtoMessage()
func (*ListAccountsFilter) ProtoReflect ¶
func (x *ListAccountsFilter) ProtoReflect() protoreflect.Message
func (*ListAccountsFilter) Reset ¶
func (x *ListAccountsFilter) Reset()
func (*ListAccountsFilter) String ¶
func (x *ListAccountsFilter) String() string
type ListAccountsRequest ¶
type ListAccountsRequest struct { Filter *ListAccountsFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListAccountsRequest) Descriptor
deprecated
func (*ListAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.
func (*ListAccountsRequest) GetFilter ¶
func (x *ListAccountsRequest) GetFilter() *ListAccountsFilter
func (*ListAccountsRequest) GetPageSize ¶
func (x *ListAccountsRequest) GetPageSize() int32
func (*ListAccountsRequest) GetPageToken ¶
func (x *ListAccountsRequest) GetPageToken() string
func (*ListAccountsRequest) ProtoMessage ¶
func (*ListAccountsRequest) ProtoMessage()
func (*ListAccountsRequest) ProtoReflect ¶
func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message
func (*ListAccountsRequest) Reset ¶
func (x *ListAccountsRequest) Reset()
func (*ListAccountsRequest) String ¶
func (x *ListAccountsRequest) String() string
type ListAccountsResponse ¶
type ListAccountsResponse struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListAccountsResponse) Descriptor
deprecated
func (*ListAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.
func (*ListAccountsResponse) GetAccounts ¶
func (x *ListAccountsResponse) GetAccounts() []*Account
func (*ListAccountsResponse) GetNextPageToken ¶
func (x *ListAccountsResponse) GetNextPageToken() string
func (*ListAccountsResponse) ProtoMessage ¶
func (*ListAccountsResponse) ProtoMessage()
func (*ListAccountsResponse) ProtoReflect ¶
func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message
func (*ListAccountsResponse) Reset ¶
func (x *ListAccountsResponse) Reset()
func (*ListAccountsResponse) String ¶
func (x *ListAccountsResponse) String() string
type ListSpacesFilter ¶
type ListSpacesFilter struct { SpaceId int32 `protobuf:"varint,1,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` SpaceName string `protobuf:"bytes,2,opt,name=space_name,json=spaceName,proto3" json:"space_name,omitempty"` SpaceState SpaceState `protobuf:"varint,3,opt,name=space_state,json=spaceState,proto3,enum=postaradmin.v1.SpaceState" json:"space_state,omitempty"` // contains filtered or unexported fields }
func (*ListSpacesFilter) Descriptor
deprecated
func (*ListSpacesFilter) Descriptor() ([]byte, []int)
Deprecated: Use ListSpacesFilter.ProtoReflect.Descriptor instead.
func (*ListSpacesFilter) GetSpaceId ¶
func (x *ListSpacesFilter) GetSpaceId() int32
func (*ListSpacesFilter) GetSpaceName ¶
func (x *ListSpacesFilter) GetSpaceName() string
func (*ListSpacesFilter) GetSpaceState ¶
func (x *ListSpacesFilter) GetSpaceState() SpaceState
func (*ListSpacesFilter) ProtoMessage ¶
func (*ListSpacesFilter) ProtoMessage()
func (*ListSpacesFilter) ProtoReflect ¶
func (x *ListSpacesFilter) ProtoReflect() protoreflect.Message
func (*ListSpacesFilter) Reset ¶
func (x *ListSpacesFilter) Reset()
func (*ListSpacesFilter) String ¶
func (x *ListSpacesFilter) String() string
type ListSpacesRequest ¶
type ListSpacesRequest struct { Filter *ListSpacesFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListSpacesRequest) Descriptor
deprecated
func (*ListSpacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSpacesRequest.ProtoReflect.Descriptor instead.
func (*ListSpacesRequest) GetFilter ¶
func (x *ListSpacesRequest) GetFilter() *ListSpacesFilter
func (*ListSpacesRequest) GetPageSize ¶
func (x *ListSpacesRequest) GetPageSize() int32
func (*ListSpacesRequest) GetPageToken ¶
func (x *ListSpacesRequest) GetPageToken() string
func (*ListSpacesRequest) ProtoMessage ¶
func (*ListSpacesRequest) ProtoMessage()
func (*ListSpacesRequest) ProtoReflect ¶
func (x *ListSpacesRequest) ProtoReflect() protoreflect.Message
func (*ListSpacesRequest) Reset ¶
func (x *ListSpacesRequest) Reset()
func (*ListSpacesRequest) String ¶
func (x *ListSpacesRequest) String() string
type ListSpacesResponse ¶
type ListSpacesResponse struct { Spaces []*Space `protobuf:"bytes,1,rep,name=spaces,proto3" json:"spaces,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListSpacesResponse) Descriptor
deprecated
func (*ListSpacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSpacesResponse.ProtoReflect.Descriptor instead.
func (*ListSpacesResponse) GetNextPageToken ¶
func (x *ListSpacesResponse) GetNextPageToken() string
func (*ListSpacesResponse) GetSpaces ¶
func (x *ListSpacesResponse) GetSpaces() []*Space
func (*ListSpacesResponse) ProtoMessage ¶
func (*ListSpacesResponse) ProtoMessage()
func (*ListSpacesResponse) ProtoReflect ¶
func (x *ListSpacesResponse) ProtoReflect() protoreflect.Message
func (*ListSpacesResponse) Reset ¶
func (x *ListSpacesResponse) Reset()
func (*ListSpacesResponse) String ¶
func (x *ListSpacesResponse) String() string
type ListTemplatesFilter ¶
type ListTemplatesFilter struct { AccountId int32 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` TemplateId int64 `protobuf:"varint,2,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` TemplateName string `protobuf:"bytes,3,opt,name=template_name,json=templateName,proto3" json:"template_name,omitempty"` TemplateState TemplateState `` /* 135-byte string literal not displayed */ EmailSubject string `protobuf:"bytes,5,opt,name=email_subject,json=emailSubject,proto3" json:"email_subject,omitempty"` // contains filtered or unexported fields }
func (*ListTemplatesFilter) Descriptor
deprecated
func (*ListTemplatesFilter) Descriptor() ([]byte, []int)
Deprecated: Use ListTemplatesFilter.ProtoReflect.Descriptor instead.
func (*ListTemplatesFilter) GetAccountId ¶
func (x *ListTemplatesFilter) GetAccountId() int32
func (*ListTemplatesFilter) GetEmailSubject ¶
func (x *ListTemplatesFilter) GetEmailSubject() string
func (*ListTemplatesFilter) GetTemplateId ¶
func (x *ListTemplatesFilter) GetTemplateId() int64
func (*ListTemplatesFilter) GetTemplateName ¶
func (x *ListTemplatesFilter) GetTemplateName() string
func (*ListTemplatesFilter) GetTemplateState ¶
func (x *ListTemplatesFilter) GetTemplateState() TemplateState
func (*ListTemplatesFilter) ProtoMessage ¶
func (*ListTemplatesFilter) ProtoMessage()
func (*ListTemplatesFilter) ProtoReflect ¶
func (x *ListTemplatesFilter) ProtoReflect() protoreflect.Message
func (*ListTemplatesFilter) Reset ¶
func (x *ListTemplatesFilter) Reset()
func (*ListTemplatesFilter) String ¶
func (x *ListTemplatesFilter) String() string
type ListTemplatesRequest ¶
type ListTemplatesRequest struct { Filter *ListTemplatesFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListTemplatesRequest) Descriptor
deprecated
func (*ListTemplatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTemplatesRequest.ProtoReflect.Descriptor instead.
func (*ListTemplatesRequest) GetFilter ¶
func (x *ListTemplatesRequest) GetFilter() *ListTemplatesFilter
func (*ListTemplatesRequest) GetPageSize ¶
func (x *ListTemplatesRequest) GetPageSize() int32
func (*ListTemplatesRequest) GetPageToken ¶
func (x *ListTemplatesRequest) GetPageToken() string
func (*ListTemplatesRequest) ProtoMessage ¶
func (*ListTemplatesRequest) ProtoMessage()
func (*ListTemplatesRequest) ProtoReflect ¶
func (x *ListTemplatesRequest) ProtoReflect() protoreflect.Message
func (*ListTemplatesRequest) Reset ¶
func (x *ListTemplatesRequest) Reset()
func (*ListTemplatesRequest) String ¶
func (x *ListTemplatesRequest) String() string
type ListTemplatesResponse ¶
type ListTemplatesResponse struct { Templates []*Template `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListTemplatesResponse) Descriptor
deprecated
func (*ListTemplatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTemplatesResponse.ProtoReflect.Descriptor instead.
func (*ListTemplatesResponse) GetNextPageToken ¶
func (x *ListTemplatesResponse) GetNextPageToken() string
func (*ListTemplatesResponse) GetTemplates ¶
func (x *ListTemplatesResponse) GetTemplates() []*Template
func (*ListTemplatesResponse) ProtoMessage ¶
func (*ListTemplatesResponse) ProtoMessage()
func (*ListTemplatesResponse) ProtoReflect ¶
func (x *ListTemplatesResponse) ProtoReflect() protoreflect.Message
func (*ListTemplatesResponse) Reset ¶
func (x *ListTemplatesResponse) Reset()
func (*ListTemplatesResponse) String ¶
func (x *ListTemplatesResponse) String() string
type SMTPAuth ¶
type SMTPAuth int32
func (SMTPAuth) Descriptor ¶
func (SMTPAuth) Descriptor() protoreflect.EnumDescriptor
func (SMTPAuth) EnumDescriptor
deprecated
func (SMTPAuth) Number ¶
func (x SMTPAuth) Number() protoreflect.EnumNumber
func (SMTPAuth) Type ¶
func (SMTPAuth) Type() protoreflect.EnumType
type Space ¶
type Space struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` State SpaceState `protobuf:"varint,4,opt,name=state,proto3,enum=postaradmin.v1.SpaceState" json:"state,omitempty"` CreateTime int64 `protobuf:"varint,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime int64 `protobuf:"varint,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*Space) Descriptor
deprecated
func (*Space) GetCreateTime ¶
func (*Space) GetState ¶
func (x *Space) GetState() SpaceState
func (*Space) GetUpdateTime ¶
func (*Space) ProtoMessage ¶
func (*Space) ProtoMessage()
func (*Space) ProtoReflect ¶
func (x *Space) ProtoReflect() protoreflect.Message
type SpaceServiceClient ¶
type SpaceServiceClient interface { CreateSpace(ctx context.Context, in *CreateSpaceRequest, opts ...grpc.CallOption) (*CreateSpaceResponse, error) UpdateSpace(ctx context.Context, in *UpdateSpaceRequest, opts ...grpc.CallOption) (*UpdateSpaceResponse, error) GetSpace(ctx context.Context, in *GetSpaceRequest, opts ...grpc.CallOption) (*GetSpaceResponse, error) ListSpaces(ctx context.Context, in *ListSpacesRequest, opts ...grpc.CallOption) (*ListSpacesResponse, error) }
SpaceServiceClient is the client API for SpaceService 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 NewSpaceServiceClient ¶
func NewSpaceServiceClient(cc grpc.ClientConnInterface) SpaceServiceClient
type SpaceServiceServer ¶
type SpaceServiceServer interface { CreateSpace(context.Context, *CreateSpaceRequest) (*CreateSpaceResponse, error) UpdateSpace(context.Context, *UpdateSpaceRequest) (*UpdateSpaceResponse, error) GetSpace(context.Context, *GetSpaceRequest) (*GetSpaceResponse, error) ListSpaces(context.Context, *ListSpacesRequest) (*ListSpacesResponse, error) // contains filtered or unexported methods }
SpaceServiceServer is the server API for SpaceService service. All implementations must embed UnimplementedSpaceServiceServer for forward compatibility
type SpaceState ¶
type SpaceState int32
const ( SpaceState_SPACE_STATE_UNSPECIFIED SpaceState = 0 SpaceState_SPACE_STATE_DISABLED SpaceState = 1 SpaceState_SPACE_STATE_ENABLED SpaceState = 2 )
func (SpaceState) Descriptor ¶
func (SpaceState) Descriptor() protoreflect.EnumDescriptor
func (SpaceState) Enum ¶
func (x SpaceState) Enum() *SpaceState
func (SpaceState) EnumDescriptor
deprecated
func (SpaceState) EnumDescriptor() ([]byte, []int)
Deprecated: Use SpaceState.Descriptor instead.
func (SpaceState) Number ¶
func (x SpaceState) Number() protoreflect.EnumNumber
func (SpaceState) String ¶
func (x SpaceState) String() string
func (SpaceState) Type ¶
func (SpaceState) Type() protoreflect.EnumType
type Template ¶
type Template struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AccountId int32 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Email *TemplateEmail `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` State TemplateState `protobuf:"varint,6,opt,name=state,proto3,enum=postaradmin.v1.TemplateState" json:"state,omitempty"` CreateTime int64 `protobuf:"varint,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime int64 `protobuf:"varint,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*Template) Descriptor
deprecated
func (*Template) GetAccountId ¶
func (*Template) GetCreateTime ¶
func (*Template) GetDescription ¶
func (*Template) GetEmail ¶
func (x *Template) GetEmail() *TemplateEmail
func (*Template) GetState ¶
func (x *Template) GetState() TemplateState
func (*Template) GetUpdateTime ¶
func (*Template) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) ProtoReflect ¶
func (x *Template) ProtoReflect() protoreflect.Message
type TemplateEmail ¶
type TemplateEmail struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` To []string `protobuf:"bytes,2,rep,name=to,proto3" json:"to,omitempty"` Cc []string `protobuf:"bytes,3,rep,name=cc,proto3" json:"cc,omitempty"` Bcc []string `protobuf:"bytes,4,rep,name=bcc,proto3" json:"bcc,omitempty"` ContentType EmailContentType `` /* 132-byte string literal not displayed */ Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*TemplateEmail) Descriptor
deprecated
func (*TemplateEmail) Descriptor() ([]byte, []int)
Deprecated: Use TemplateEmail.ProtoReflect.Descriptor instead.
func (*TemplateEmail) GetBcc ¶
func (x *TemplateEmail) GetBcc() []string
func (*TemplateEmail) GetCc ¶
func (x *TemplateEmail) GetCc() []string
func (*TemplateEmail) GetContent ¶
func (x *TemplateEmail) GetContent() string
func (*TemplateEmail) GetContentType ¶
func (x *TemplateEmail) GetContentType() EmailContentType
func (*TemplateEmail) GetSubject ¶
func (x *TemplateEmail) GetSubject() string
func (*TemplateEmail) GetTo ¶
func (x *TemplateEmail) GetTo() []string
func (*TemplateEmail) ProtoMessage ¶
func (*TemplateEmail) ProtoMessage()
func (*TemplateEmail) ProtoReflect ¶
func (x *TemplateEmail) ProtoReflect() protoreflect.Message
func (*TemplateEmail) Reset ¶
func (x *TemplateEmail) Reset()
func (*TemplateEmail) String ¶
func (x *TemplateEmail) String() string
type TemplateServiceClient ¶
type TemplateServiceClient interface { CreateTemplate(ctx context.Context, in *CreateTemplateRequest, opts ...grpc.CallOption) (*CreateTemplateResponse, error) UpdateTemplate(ctx context.Context, in *UpdateTemplateRequest, opts ...grpc.CallOption) (*UpdateTemplateResponse, error) GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateResponse, error) ListTemplates(ctx context.Context, in *ListTemplatesRequest, opts ...grpc.CallOption) (*ListTemplatesResponse, error) DeleteTemplate(ctx context.Context, in *DeleteTemplateRequest, opts ...grpc.CallOption) (*DeleteTemplateResponse, error) }
TemplateServiceClient is the client API for TemplateService 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 NewTemplateServiceClient ¶
func NewTemplateServiceClient(cc grpc.ClientConnInterface) TemplateServiceClient
type TemplateServiceServer ¶
type TemplateServiceServer interface { CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error) UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateResponse, error) GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateResponse, error) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateResponse, error) // contains filtered or unexported methods }
TemplateServiceServer is the server API for TemplateService service. All implementations must embed UnimplementedTemplateServiceServer for forward compatibility
type TemplateState ¶
type TemplateState int32
const ( TemplateState_TEMPLATE_STATE_UNSPECIFIED TemplateState = 0 TemplateState_TEMPLATE_STATE_DELETED TemplateState = 1 TemplateState_TEMPLATE_STATE_DISABLED TemplateState = 2 TemplateState_TEMPLATE_STATE_ENABLED TemplateState = 3 )
func (TemplateState) Descriptor ¶
func (TemplateState) Descriptor() protoreflect.EnumDescriptor
func (TemplateState) Enum ¶
func (x TemplateState) Enum() *TemplateState
func (TemplateState) EnumDescriptor
deprecated
func (TemplateState) EnumDescriptor() ([]byte, []int)
Deprecated: Use TemplateState.Descriptor instead.
func (TemplateState) Number ¶
func (x TemplateState) Number() protoreflect.EnumNumber
func (TemplateState) String ¶
func (x TemplateState) String() string
func (TemplateState) Type ¶
func (TemplateState) Type() protoreflect.EnumType
type UnimplementedAccountServiceServer ¶
type UnimplementedAccountServiceServer struct { }
UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServiceServer) CreateAccount ¶
func (UnimplementedAccountServiceServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
func (UnimplementedAccountServiceServer) GetAccount ¶
func (UnimplementedAccountServiceServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
func (UnimplementedAccountServiceServer) ListAccounts ¶
func (UnimplementedAccountServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
func (UnimplementedAccountServiceServer) UpdateAccount ¶
func (UnimplementedAccountServiceServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error)
type UnimplementedSpaceServiceServer ¶
type UnimplementedSpaceServiceServer struct { }
UnimplementedSpaceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSpaceServiceServer) CreateSpace ¶
func (UnimplementedSpaceServiceServer) CreateSpace(context.Context, *CreateSpaceRequest) (*CreateSpaceResponse, error)
func (UnimplementedSpaceServiceServer) GetSpace ¶
func (UnimplementedSpaceServiceServer) GetSpace(context.Context, *GetSpaceRequest) (*GetSpaceResponse, error)
func (UnimplementedSpaceServiceServer) ListSpaces ¶
func (UnimplementedSpaceServiceServer) ListSpaces(context.Context, *ListSpacesRequest) (*ListSpacesResponse, error)
func (UnimplementedSpaceServiceServer) UpdateSpace ¶
func (UnimplementedSpaceServiceServer) UpdateSpace(context.Context, *UpdateSpaceRequest) (*UpdateSpaceResponse, error)
type UnimplementedTemplateServiceServer ¶
type UnimplementedTemplateServiceServer struct { }
UnimplementedTemplateServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTemplateServiceServer) CreateTemplate ¶
func (UnimplementedTemplateServiceServer) CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error)
func (UnimplementedTemplateServiceServer) DeleteTemplate ¶
func (UnimplementedTemplateServiceServer) DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateResponse, error)
func (UnimplementedTemplateServiceServer) GetTemplate ¶
func (UnimplementedTemplateServiceServer) GetTemplate(context.Context, *GetTemplateRequest) (*GetTemplateResponse, error)
func (UnimplementedTemplateServiceServer) ListTemplates ¶
func (UnimplementedTemplateServiceServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error)
func (UnimplementedTemplateServiceServer) UpdateTemplate ¶
func (UnimplementedTemplateServiceServer) UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateResponse, error)
type UnsafeAccountServiceServer ¶
type UnsafeAccountServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.
type UnsafeSpaceServiceServer ¶
type UnsafeSpaceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSpaceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SpaceServiceServer will result in compilation errors.
type UnsafeTemplateServiceServer ¶
type UnsafeTemplateServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTemplateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TemplateServiceServer will result in compilation errors.
type UpdateAccountRequest ¶
type UpdateAccountRequest struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*UpdateAccountRequest) Descriptor
deprecated
func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.
func (*UpdateAccountRequest) GetAccount ¶
func (x *UpdateAccountRequest) GetAccount() *Account
func (*UpdateAccountRequest) ProtoMessage ¶
func (*UpdateAccountRequest) ProtoMessage()
func (*UpdateAccountRequest) ProtoReflect ¶
func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
func (*UpdateAccountRequest) Reset ¶
func (x *UpdateAccountRequest) Reset()
func (*UpdateAccountRequest) String ¶
func (x *UpdateAccountRequest) String() string
type UpdateAccountResponse ¶
type UpdateAccountResponse struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*UpdateAccountResponse) Descriptor
deprecated
func (*UpdateAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountResponse.ProtoReflect.Descriptor instead.
func (*UpdateAccountResponse) GetAccount ¶
func (x *UpdateAccountResponse) GetAccount() *Account
func (*UpdateAccountResponse) ProtoMessage ¶
func (*UpdateAccountResponse) ProtoMessage()
func (*UpdateAccountResponse) ProtoReflect ¶
func (x *UpdateAccountResponse) ProtoReflect() protoreflect.Message
func (*UpdateAccountResponse) Reset ¶
func (x *UpdateAccountResponse) Reset()
func (*UpdateAccountResponse) String ¶
func (x *UpdateAccountResponse) String() string
type UpdateSpaceRequest ¶
type UpdateSpaceRequest struct { Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"` // contains filtered or unexported fields }
func (*UpdateSpaceRequest) Descriptor
deprecated
func (*UpdateSpaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSpaceRequest.ProtoReflect.Descriptor instead.
func (*UpdateSpaceRequest) GetSpace ¶
func (x *UpdateSpaceRequest) GetSpace() *Space
func (*UpdateSpaceRequest) ProtoMessage ¶
func (*UpdateSpaceRequest) ProtoMessage()
func (*UpdateSpaceRequest) ProtoReflect ¶
func (x *UpdateSpaceRequest) ProtoReflect() protoreflect.Message
func (*UpdateSpaceRequest) Reset ¶
func (x *UpdateSpaceRequest) Reset()
func (*UpdateSpaceRequest) String ¶
func (x *UpdateSpaceRequest) String() string
type UpdateSpaceResponse ¶
type UpdateSpaceResponse struct { Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"` // contains filtered or unexported fields }
func (*UpdateSpaceResponse) Descriptor
deprecated
func (*UpdateSpaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSpaceResponse.ProtoReflect.Descriptor instead.
func (*UpdateSpaceResponse) GetSpace ¶
func (x *UpdateSpaceResponse) GetSpace() *Space
func (*UpdateSpaceResponse) ProtoMessage ¶
func (*UpdateSpaceResponse) ProtoMessage()
func (*UpdateSpaceResponse) ProtoReflect ¶
func (x *UpdateSpaceResponse) ProtoReflect() protoreflect.Message
func (*UpdateSpaceResponse) Reset ¶
func (x *UpdateSpaceResponse) Reset()
func (*UpdateSpaceResponse) String ¶
func (x *UpdateSpaceResponse) String() string
type UpdateTemplateRequest ¶
type UpdateTemplateRequest struct { Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` // contains filtered or unexported fields }
func (*UpdateTemplateRequest) Descriptor
deprecated
func (*UpdateTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTemplateRequest.ProtoReflect.Descriptor instead.
func (*UpdateTemplateRequest) GetTemplate ¶
func (x *UpdateTemplateRequest) GetTemplate() *Template
func (*UpdateTemplateRequest) ProtoMessage ¶
func (*UpdateTemplateRequest) ProtoMessage()
func (*UpdateTemplateRequest) ProtoReflect ¶
func (x *UpdateTemplateRequest) ProtoReflect() protoreflect.Message
func (*UpdateTemplateRequest) Reset ¶
func (x *UpdateTemplateRequest) Reset()
func (*UpdateTemplateRequest) String ¶
func (x *UpdateTemplateRequest) String() string
type UpdateTemplateResponse ¶
type UpdateTemplateResponse struct { Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` // contains filtered or unexported fields }
func (*UpdateTemplateResponse) Descriptor
deprecated
func (*UpdateTemplateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTemplateResponse.ProtoReflect.Descriptor instead.
func (*UpdateTemplateResponse) GetTemplate ¶
func (x *UpdateTemplateResponse) GetTemplate() *Template
func (*UpdateTemplateResponse) ProtoMessage ¶
func (*UpdateTemplateResponse) ProtoMessage()
func (*UpdateTemplateResponse) ProtoReflect ¶
func (x *UpdateTemplateResponse) ProtoReflect() protoreflect.Message
func (*UpdateTemplateResponse) Reset ¶
func (x *UpdateTemplateResponse) Reset()
func (*UpdateTemplateResponse) String ¶
func (x *UpdateTemplateResponse) String() string