Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2022 Changes in this version + const OperationMenuServiceCreateMenu + const OperationMenuServiceDeleteMenu + const OperationMenuServiceGetAvailableMenus + const OperationMenuServiceGetMenu + const OperationMenuServiceListMenu + const OperationMenuServiceUpdateMenu + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var File_sys_api_menu_v1_error_reason_proto protoreflect.FileDescriptor + var File_sys_api_menu_v1_menu_proto protoreflect.FileDescriptor + var MenuService_ServiceDesc = grpc.ServiceDesc + func ErrorMenuNameDuplicate(format string, args ...interface{}) *errors.Error + func ErrorMenuNameDuplicateLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error + func ErrorMenuPreserved(format string, args ...interface{}) *errors.Error + func ErrorMenuPreservedLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error + func IsMenuNameDuplicate(err error) bool + func IsMenuPreserved(err error) bool + func RegisterMenuServiceHTTPServer(s *http.Server, srv MenuServiceHTTPServer) + func RegisterMenuServiceServer(s grpc.ServiceRegistrar, srv MenuServiceServer) + type CreateMenuRequest struct + Component string + Desc string + FullPath string + Icon string + Iframe string + IgnoreAuth bool + Meta *structpb.Struct + MicroApp string + MicroAppBaseRoute string + MicroAppDev string + MicroAppName string + Name string + Parent string + Path string + Priority int32 + Props *structpb.Struct + Redirect string + Requirement []*v1.PermissionRequirement + Title string + func (*CreateMenuRequest) Descriptor() ([]byte, []int) + func (*CreateMenuRequest) ProtoMessage() + func (m *CreateMenuRequest) Validate() error + func (m *CreateMenuRequest) ValidateAll() error + func (x *CreateMenuRequest) GetComponent() string + func (x *CreateMenuRequest) GetDesc() string + func (x *CreateMenuRequest) GetFullPath() string + func (x *CreateMenuRequest) GetIcon() string + func (x *CreateMenuRequest) GetIframe() string + func (x *CreateMenuRequest) GetIgnoreAuth() bool + func (x *CreateMenuRequest) GetMeta() *structpb.Struct + func (x *CreateMenuRequest) GetMicroApp() string + func (x *CreateMenuRequest) GetMicroAppBaseRoute() string + func (x *CreateMenuRequest) GetMicroAppDev() string + func (x *CreateMenuRequest) GetMicroAppName() string + func (x *CreateMenuRequest) GetName() string + func (x *CreateMenuRequest) GetParent() string + func (x *CreateMenuRequest) GetPath() string + func (x *CreateMenuRequest) GetPriority() int32 + func (x *CreateMenuRequest) GetProps() *structpb.Struct + func (x *CreateMenuRequest) GetRedirect() string + func (x *CreateMenuRequest) GetRequirement() []*v1.PermissionRequirement + func (x *CreateMenuRequest) GetTitle() string + func (x *CreateMenuRequest) ProtoReflect() protoreflect.Message + func (x *CreateMenuRequest) Reset() + func (x *CreateMenuRequest) String() string + type CreateMenuRequestMultiError []error + func (m CreateMenuRequestMultiError) AllErrors() []error + func (m CreateMenuRequestMultiError) Error() string + type CreateMenuRequestValidationError struct + func (e CreateMenuRequestValidationError) Cause() error + func (e CreateMenuRequestValidationError) Error() string + func (e CreateMenuRequestValidationError) ErrorName() string + func (e CreateMenuRequestValidationError) Field() string + func (e CreateMenuRequestValidationError) Key() bool + func (e CreateMenuRequestValidationError) Reason() string + type DeleteMenuReply struct + Id string + Name string + func (*DeleteMenuReply) Descriptor() ([]byte, []int) + func (*DeleteMenuReply) ProtoMessage() + func (m *DeleteMenuReply) Validate() error + func (m *DeleteMenuReply) ValidateAll() error + func (x *DeleteMenuReply) GetId() string + func (x *DeleteMenuReply) GetName() string + func (x *DeleteMenuReply) ProtoReflect() protoreflect.Message + func (x *DeleteMenuReply) Reset() + func (x *DeleteMenuReply) String() string + type DeleteMenuReplyMultiError []error + func (m DeleteMenuReplyMultiError) AllErrors() []error + func (m DeleteMenuReplyMultiError) Error() string + type DeleteMenuReplyValidationError struct + func (e DeleteMenuReplyValidationError) Cause() error + func (e DeleteMenuReplyValidationError) Error() string + func (e DeleteMenuReplyValidationError) ErrorName() string + func (e DeleteMenuReplyValidationError) Field() string + func (e DeleteMenuReplyValidationError) Key() bool + func (e DeleteMenuReplyValidationError) Reason() string + type DeleteMenuRequest struct + Id string + func (*DeleteMenuRequest) Descriptor() ([]byte, []int) + func (*DeleteMenuRequest) ProtoMessage() + func (m *DeleteMenuRequest) Validate() error + func (m *DeleteMenuRequest) ValidateAll() error + func (x *DeleteMenuRequest) GetId() string + func (x *DeleteMenuRequest) ProtoReflect() protoreflect.Message + func (x *DeleteMenuRequest) Reset() + func (x *DeleteMenuRequest) String() string + type DeleteMenuRequestMultiError []error + func (m DeleteMenuRequestMultiError) AllErrors() []error + func (m DeleteMenuRequestMultiError) Error() string + type DeleteMenuRequestValidationError struct + func (e DeleteMenuRequestValidationError) Cause() error + func (e DeleteMenuRequestValidationError) Error() string + func (e DeleteMenuRequestValidationError) ErrorName() string + func (e DeleteMenuRequestValidationError) Field() string + func (e DeleteMenuRequestValidationError) Key() bool + func (e DeleteMenuRequestValidationError) Reason() string + type ErrorReason int32 + const ErrorReason_MENU_NAME_DUPLICATE + const ErrorReason_MENU_PRESERVED + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type GetAvailableMenusReply struct + Items []*Menu + func (*GetAvailableMenusReply) Descriptor() ([]byte, []int) + func (*GetAvailableMenusReply) ProtoMessage() + func (m *GetAvailableMenusReply) Validate() error + func (m *GetAvailableMenusReply) ValidateAll() error + func (x *GetAvailableMenusReply) GetItems() []*Menu + func (x *GetAvailableMenusReply) ProtoReflect() protoreflect.Message + func (x *GetAvailableMenusReply) Reset() + func (x *GetAvailableMenusReply) String() string + type GetAvailableMenusReplyMultiError []error + func (m GetAvailableMenusReplyMultiError) AllErrors() []error + func (m GetAvailableMenusReplyMultiError) Error() string + type GetAvailableMenusReplyValidationError struct + func (e GetAvailableMenusReplyValidationError) Cause() error + func (e GetAvailableMenusReplyValidationError) Error() string + func (e GetAvailableMenusReplyValidationError) ErrorName() string + func (e GetAvailableMenusReplyValidationError) Field() string + func (e GetAvailableMenusReplyValidationError) Key() bool + func (e GetAvailableMenusReplyValidationError) Reason() string + type GetAvailableMenusRequest struct + func (*GetAvailableMenusRequest) Descriptor() ([]byte, []int) + func (*GetAvailableMenusRequest) ProtoMessage() + func (m *GetAvailableMenusRequest) Validate() error + func (m *GetAvailableMenusRequest) ValidateAll() error + func (x *GetAvailableMenusRequest) ProtoReflect() protoreflect.Message + func (x *GetAvailableMenusRequest) Reset() + func (x *GetAvailableMenusRequest) String() string + type GetAvailableMenusRequestMultiError []error + func (m GetAvailableMenusRequestMultiError) AllErrors() []error + func (m GetAvailableMenusRequestMultiError) Error() string + type GetAvailableMenusRequestValidationError struct + func (e GetAvailableMenusRequestValidationError) Cause() error + func (e GetAvailableMenusRequestValidationError) Error() string + func (e GetAvailableMenusRequestValidationError) ErrorName() string + func (e GetAvailableMenusRequestValidationError) Field() string + func (e GetAvailableMenusRequestValidationError) Key() bool + func (e GetAvailableMenusRequestValidationError) Reason() string + type GetMenuRequest struct + Id string + func (*GetMenuRequest) Descriptor() ([]byte, []int) + func (*GetMenuRequest) ProtoMessage() + func (m *GetMenuRequest) Validate() error + func (m *GetMenuRequest) ValidateAll() error + func (x *GetMenuRequest) GetId() string + func (x *GetMenuRequest) ProtoReflect() protoreflect.Message + func (x *GetMenuRequest) Reset() + func (x *GetMenuRequest) String() string + type GetMenuRequestMultiError []error + func (m GetMenuRequestMultiError) AllErrors() []error + func (m GetMenuRequestMultiError) Error() string + type GetMenuRequestValidationError struct + func (e GetMenuRequestValidationError) Cause() error + func (e GetMenuRequestValidationError) Error() string + func (e GetMenuRequestValidationError) ErrorName() string + func (e GetMenuRequestValidationError) Field() string + func (e GetMenuRequestValidationError) Key() bool + func (e GetMenuRequestValidationError) Reason() string + type ListMenuReply struct + FilterSize int32 + Items []*Menu + TotalSize int32 + func (*ListMenuReply) Descriptor() ([]byte, []int) + func (*ListMenuReply) ProtoMessage() + func (m *ListMenuReply) Validate() error + func (m *ListMenuReply) ValidateAll() error + func (x *ListMenuReply) GetFilterSize() int32 + func (x *ListMenuReply) GetItems() []*Menu + func (x *ListMenuReply) GetTotalSize() int32 + func (x *ListMenuReply) ProtoReflect() protoreflect.Message + func (x *ListMenuReply) Reset() + func (x *ListMenuReply) String() string + type ListMenuReplyMultiError []error + func (m ListMenuReplyMultiError) AllErrors() []error + func (m ListMenuReplyMultiError) Error() string + type ListMenuReplyValidationError struct + func (e ListMenuReplyValidationError) Cause() error + func (e ListMenuReplyValidationError) Error() string + func (e ListMenuReplyValidationError) ErrorName() string + func (e ListMenuReplyValidationError) Field() string + func (e ListMenuReplyValidationError) Key() bool + func (e ListMenuReplyValidationError) Reason() string + type ListMenuRequest struct + Fields *fieldmaskpb.FieldMask + Filter *MenuFilter + PageOffset int32 + PageSize int32 + Search string + Sort []string + func (*ListMenuRequest) Descriptor() ([]byte, []int) + func (*ListMenuRequest) ProtoMessage() + func (m *ListMenuRequest) Validate() error + func (m *ListMenuRequest) ValidateAll() error + func (x *ListMenuRequest) GetFields() *fieldmaskpb.FieldMask + func (x *ListMenuRequest) GetFilter() *MenuFilter + func (x *ListMenuRequest) GetPageOffset() int32 + func (x *ListMenuRequest) GetPageSize() int32 + func (x *ListMenuRequest) GetSearch() string + func (x *ListMenuRequest) GetSort() []string + func (x *ListMenuRequest) ProtoReflect() protoreflect.Message + func (x *ListMenuRequest) Reset() + func (x *ListMenuRequest) String() string + type ListMenuRequestMultiError []error + func (m ListMenuRequestMultiError) AllErrors() []error + func (m ListMenuRequestMultiError) Error() string + type ListMenuRequestValidationError struct + func (e ListMenuRequestValidationError) Cause() error + func (e ListMenuRequestValidationError) Error() string + func (e ListMenuRequestValidationError) ErrorName() string + func (e ListMenuRequestValidationError) Field() string + func (e ListMenuRequestValidationError) Key() bool + func (e ListMenuRequestValidationError) Reason() string + type Menu struct + Component string + CreatedAt *timestamppb.Timestamp + Desc string + FullPath string + Icon string + Id string + Iframe string + IgnoreAuth bool + Meta *structpb.Struct + MicroApp string + MicroAppBaseRoute string + MicroAppDev string + MicroAppName string + Name string + Parent string + Path string + Priority int32 + Props *structpb.Struct + Redirect string + Requirement []*v1.PermissionRequirement + Title string + func (*Menu) Descriptor() ([]byte, []int) + func (*Menu) ProtoMessage() + func (m *Menu) Validate() error + func (m *Menu) ValidateAll() error + func (x *Menu) GetComponent() string + func (x *Menu) GetCreatedAt() *timestamppb.Timestamp + func (x *Menu) GetDesc() string + func (x *Menu) GetFullPath() string + func (x *Menu) GetIcon() string + func (x *Menu) GetId() string + func (x *Menu) GetIframe() string + func (x *Menu) GetIgnoreAuth() bool + func (x *Menu) GetMeta() *structpb.Struct + func (x *Menu) GetMicroApp() string + func (x *Menu) GetMicroAppBaseRoute() string + func (x *Menu) GetMicroAppDev() string + func (x *Menu) GetMicroAppName() string + func (x *Menu) GetName() string + func (x *Menu) GetParent() string + func (x *Menu) GetPath() string + func (x *Menu) GetPriority() int32 + func (x *Menu) GetProps() *structpb.Struct + func (x *Menu) GetRedirect() string + func (x *Menu) GetRequirement() []*v1.PermissionRequirement + func (x *Menu) GetTitle() string + func (x *Menu) ProtoReflect() protoreflect.Message + func (x *Menu) Reset() + func (x *Menu) String() string + type MenuFilter struct + Id *query.StringFilterOperation + Name *query.StringFilterOperation + Parent *query.StringFilterOperation + func (*MenuFilter) Descriptor() ([]byte, []int) + func (*MenuFilter) ProtoMessage() + func (m *MenuFilter) Validate() error + func (m *MenuFilter) ValidateAll() error + func (x *MenuFilter) GetId() *query.StringFilterOperation + func (x *MenuFilter) GetName() *query.StringFilterOperation + func (x *MenuFilter) GetParent() *query.StringFilterOperation + func (x *MenuFilter) ProtoReflect() protoreflect.Message + func (x *MenuFilter) Reset() + func (x *MenuFilter) String() string + type MenuFilterMultiError []error + func (m MenuFilterMultiError) AllErrors() []error + func (m MenuFilterMultiError) Error() string + type MenuFilterValidationError struct + func (e MenuFilterValidationError) Cause() error + func (e MenuFilterValidationError) Error() string + func (e MenuFilterValidationError) ErrorName() string + func (e MenuFilterValidationError) Field() string + func (e MenuFilterValidationError) Key() bool + func (e MenuFilterValidationError) Reason() string + type MenuMultiError []error + func (m MenuMultiError) AllErrors() []error + func (m MenuMultiError) Error() string + type MenuServiceClient interface + CreateMenu func(ctx context.Context, in *CreateMenuRequest, opts ...grpc.CallOption) (*Menu, error) + DeleteMenu func(ctx context.Context, in *DeleteMenuRequest, opts ...grpc.CallOption) (*DeleteMenuReply, error) + GetAvailableMenus func(ctx context.Context, in *GetAvailableMenusRequest, opts ...grpc.CallOption) (*GetAvailableMenusReply, error) + GetMenu func(ctx context.Context, in *GetMenuRequest, opts ...grpc.CallOption) (*Menu, error) + ListMenu func(ctx context.Context, in *ListMenuRequest, opts ...grpc.CallOption) (*ListMenuReply, error) + UpdateMenu func(ctx context.Context, in *UpdateMenuRequest, opts ...grpc.CallOption) (*Menu, error) + func NewMenuServiceClient(cc grpc.ClientConnInterface) MenuServiceClient + type MenuServiceHTTPClient interface + CreateMenu func(ctx context.Context, req *CreateMenuRequest, opts ...http.CallOption) (rsp *Menu, err error) + DeleteMenu func(ctx context.Context, req *DeleteMenuRequest, opts ...http.CallOption) (rsp *DeleteMenuReply, err error) + GetAvailableMenus func(ctx context.Context, req *GetAvailableMenusRequest, opts ...http.CallOption) (rsp *GetAvailableMenusReply, err error) + GetMenu func(ctx context.Context, req *GetMenuRequest, opts ...http.CallOption) (rsp *Menu, err error) + ListMenu func(ctx context.Context, req *ListMenuRequest, opts ...http.CallOption) (rsp *ListMenuReply, err error) + UpdateMenu func(ctx context.Context, req *UpdateMenuRequest, opts ...http.CallOption) (rsp *Menu, err error) + func NewMenuServiceHTTPClient(client *http.Client) MenuServiceHTTPClient + type MenuServiceHTTPClientImpl struct + func (c *MenuServiceHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...http.CallOption) (*Menu, error) + func (c *MenuServiceHTTPClientImpl) DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...http.CallOption) (*DeleteMenuReply, error) + func (c *MenuServiceHTTPClientImpl) GetAvailableMenus(ctx context.Context, in *GetAvailableMenusRequest, opts ...http.CallOption) (*GetAvailableMenusReply, error) + func (c *MenuServiceHTTPClientImpl) GetMenu(ctx context.Context, in *GetMenuRequest, opts ...http.CallOption) (*Menu, error) + func (c *MenuServiceHTTPClientImpl) ListMenu(ctx context.Context, in *ListMenuRequest, opts ...http.CallOption) (*ListMenuReply, error) + func (c *MenuServiceHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...http.CallOption) (*Menu, error) + type MenuServiceHTTPServer interface + CreateMenu func(context.Context, *CreateMenuRequest) (*Menu, error) + DeleteMenu func(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error) + GetAvailableMenus func(context.Context, *GetAvailableMenusRequest) (*GetAvailableMenusReply, error) + GetMenu func(context.Context, *GetMenuRequest) (*Menu, error) + ListMenu func(context.Context, *ListMenuRequest) (*ListMenuReply, error) + UpdateMenu func(context.Context, *UpdateMenuRequest) (*Menu, error) + type MenuServiceServer interface + CreateMenu func(context.Context, *CreateMenuRequest) (*Menu, error) + DeleteMenu func(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error) + GetAvailableMenus func(context.Context, *GetAvailableMenusRequest) (*GetAvailableMenusReply, error) + GetMenu func(context.Context, *GetMenuRequest) (*Menu, error) + ListMenu func(context.Context, *ListMenuRequest) (*ListMenuReply, error) + UpdateMenu func(context.Context, *UpdateMenuRequest) (*Menu, error) + func NewMenuServiceClientProxy(cc MenuServiceClient) MenuServiceServer + type MenuValidationError struct + func (e MenuValidationError) Cause() error + func (e MenuValidationError) Error() string + func (e MenuValidationError) ErrorName() string + func (e MenuValidationError) Field() string + func (e MenuValidationError) Key() bool + func (e MenuValidationError) Reason() string + type UnimplementedMenuServiceServer struct + func (UnimplementedMenuServiceServer) CreateMenu(context.Context, *CreateMenuRequest) (*Menu, error) + func (UnimplementedMenuServiceServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error) + func (UnimplementedMenuServiceServer) GetAvailableMenus(context.Context, *GetAvailableMenusRequest) (*GetAvailableMenusReply, error) + func (UnimplementedMenuServiceServer) GetMenu(context.Context, *GetMenuRequest) (*Menu, error) + func (UnimplementedMenuServiceServer) ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error) + func (UnimplementedMenuServiceServer) UpdateMenu(context.Context, *UpdateMenuRequest) (*Menu, error) + type UnsafeMenuServiceServer interface + type UpdateMenu struct + Component string + Desc string + FullPath string + Icon string + Id string + Iframe string + IgnoreAuth bool + Meta *structpb.Struct + MicroApp string + MicroAppBaseRoute string + MicroAppDev string + MicroAppName string + Name string + Parent string + Path string + Priority int32 + Props *structpb.Struct + Redirect string + Requirement []*v1.PermissionRequirement + Title string + func (*UpdateMenu) Descriptor() ([]byte, []int) + func (*UpdateMenu) ProtoMessage() + func (m *UpdateMenu) Validate() error + func (m *UpdateMenu) ValidateAll() error + func (x *UpdateMenu) GetComponent() string + func (x *UpdateMenu) GetDesc() string + func (x *UpdateMenu) GetFullPath() string + func (x *UpdateMenu) GetIcon() string + func (x *UpdateMenu) GetId() string + func (x *UpdateMenu) GetIframe() string + func (x *UpdateMenu) GetIgnoreAuth() bool + func (x *UpdateMenu) GetMeta() *structpb.Struct + func (x *UpdateMenu) GetMicroApp() string + func (x *UpdateMenu) GetMicroAppBaseRoute() string + func (x *UpdateMenu) GetMicroAppDev() string + func (x *UpdateMenu) GetMicroAppName() string + func (x *UpdateMenu) GetName() string + func (x *UpdateMenu) GetParent() string + func (x *UpdateMenu) GetPath() string + func (x *UpdateMenu) GetPriority() int32 + func (x *UpdateMenu) GetProps() *structpb.Struct + func (x *UpdateMenu) GetRedirect() string + func (x *UpdateMenu) GetRequirement() []*v1.PermissionRequirement + func (x *UpdateMenu) GetTitle() string + func (x *UpdateMenu) ProtoReflect() protoreflect.Message + func (x *UpdateMenu) Reset() + func (x *UpdateMenu) String() string + type UpdateMenuMultiError []error + func (m UpdateMenuMultiError) AllErrors() []error + func (m UpdateMenuMultiError) Error() string + type UpdateMenuRequest struct + Menu *UpdateMenu + UpdateMask *fieldmaskpb.FieldMask + func (*UpdateMenuRequest) Descriptor() ([]byte, []int) + func (*UpdateMenuRequest) ProtoMessage() + func (m *UpdateMenuRequest) Validate() error + func (m *UpdateMenuRequest) ValidateAll() error + func (x *UpdateMenuRequest) GetMenu() *UpdateMenu + func (x *UpdateMenuRequest) GetUpdateMask() *fieldmaskpb.FieldMask + func (x *UpdateMenuRequest) ProtoReflect() protoreflect.Message + func (x *UpdateMenuRequest) Reset() + func (x *UpdateMenuRequest) String() string + type UpdateMenuRequestMultiError []error + func (m UpdateMenuRequestMultiError) AllErrors() []error + func (m UpdateMenuRequestMultiError) Error() string + type UpdateMenuRequestValidationError struct + func (e UpdateMenuRequestValidationError) Cause() error + func (e UpdateMenuRequestValidationError) Error() string + func (e UpdateMenuRequestValidationError) ErrorName() string + func (e UpdateMenuRequestValidationError) Field() string + func (e UpdateMenuRequestValidationError) Key() bool + func (e UpdateMenuRequestValidationError) Reason() string + type UpdateMenuValidationError struct + func (e UpdateMenuValidationError) Cause() error + func (e UpdateMenuValidationError) Error() string + func (e UpdateMenuValidationError) ErrorName() string + func (e UpdateMenuValidationError) Field() string + func (e UpdateMenuValidationError) Key() bool + func (e UpdateMenuValidationError) Reason() string