Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRouterHTTPServer(s *http.Server, srv RouterHTTPServer)
- func RegisterRouterServer(s grpc.ServiceRegistrar, srv RouterServer)
- type CreateNavigationRequest
- func (*CreateNavigationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNavigationRequest) GetNavigationID() string
- func (x *CreateNavigationRequest) GetNavigationName() string
- func (*CreateNavigationRequest) ProtoMessage()
- func (x *CreateNavigationRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNavigationRequest) Reset()
- func (x *CreateNavigationRequest) String() string
- func (m *CreateNavigationRequest) Validate() error
- func (m *CreateNavigationRequest) ValidateAll() error
- type CreateNavigationRequestMultiError
- type CreateNavigationRequestValidationError
- func (e CreateNavigationRequestValidationError) Cause() error
- func (e CreateNavigationRequestValidationError) Error() string
- func (e CreateNavigationRequestValidationError) ErrorName() string
- func (e CreateNavigationRequestValidationError) Field() string
- func (e CreateNavigationRequestValidationError) Key() bool
- func (e CreateNavigationRequestValidationError) Reason() string
- type GetNavigationReply
- func (*GetNavigationReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetNavigationReply) GetId() string
- func (x *GetNavigationReply) GetNavigationID() string
- func (x *GetNavigationReply) GetNavigationName() string
- func (x *GetNavigationReply) GetStatus() bool
- func (*GetNavigationReply) ProtoMessage()
- func (x *GetNavigationReply) ProtoReflect() protoreflect.Message
- func (x *GetNavigationReply) Reset()
- func (x *GetNavigationReply) String() string
- func (m *GetNavigationReply) Validate() error
- func (m *GetNavigationReply) ValidateAll() error
- type GetNavigationReplyMultiError
- type GetNavigationReplyValidationError
- func (e GetNavigationReplyValidationError) Cause() error
- func (e GetNavigationReplyValidationError) Error() string
- func (e GetNavigationReplyValidationError) ErrorName() string
- func (e GetNavigationReplyValidationError) Field() string
- func (e GetNavigationReplyValidationError) Key() bool
- func (e GetNavigationReplyValidationError) Reason() string
- type ListNavigationReply
- func (*ListNavigationReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListNavigationReply) GetDataList() []*GetNavigationReply
- func (x *ListNavigationReply) GetPage() int32
- func (x *ListNavigationReply) GetPerPage() int32
- func (x *ListNavigationReply) GetTotal() int32
- func (*ListNavigationReply) ProtoMessage()
- func (x *ListNavigationReply) ProtoReflect() protoreflect.Message
- func (x *ListNavigationReply) Reset()
- func (x *ListNavigationReply) String() string
- func (m *ListNavigationReply) Validate() error
- func (m *ListNavigationReply) ValidateAll() error
- type ListNavigationReplyMultiError
- type ListNavigationReplyValidationError
- func (e ListNavigationReplyValidationError) Cause() error
- func (e ListNavigationReplyValidationError) Error() string
- func (e ListNavigationReplyValidationError) ErrorName() string
- func (e ListNavigationReplyValidationError) Field() string
- func (e ListNavigationReplyValidationError) Key() bool
- func (e ListNavigationReplyValidationError) Reason() string
- type RouterClient
- type RouterHTTPClient
- type RouterHTTPClientImpl
- func (c *RouterHTTPClientImpl) CreateNavigation(ctx context.Context, in *CreateNavigationRequest, opts ...http.CallOption) (*api.Success, error)
- func (c *RouterHTTPClientImpl) DeleteNavigation(ctx context.Context, in *api.IDRequest, opts ...http.CallOption) (*api.Success, error)
- func (c *RouterHTTPClientImpl) GetNavigation(ctx context.Context, in *api.IDRequest, opts ...http.CallOption) (*GetNavigationReply, error)
- func (c *RouterHTTPClientImpl) ListNavigation(ctx context.Context, in *api.PageSearch, opts ...http.CallOption) (*ListNavigationReply, error)
- func (c *RouterHTTPClientImpl) UpdateNavigation(ctx context.Context, in *UpdateNavigationRequest, opts ...http.CallOption) (*api.Success, error)
- type RouterHTTPServer
- type RouterServer
- type UnimplementedRouterServer
- func (UnimplementedRouterServer) CreateNavigation(context.Context, *CreateNavigationRequest) (*api.Success, error)
- func (UnimplementedRouterServer) DeleteNavigation(context.Context, *api.IDRequest) (*api.Success, error)
- func (UnimplementedRouterServer) GetNavigation(context.Context, *api.IDRequest) (*GetNavigationReply, error)
- func (UnimplementedRouterServer) ListNavigation(context.Context, *api.PageSearch) (*ListNavigationReply, error)
- func (UnimplementedRouterServer) UpdateNavigation(context.Context, *UpdateNavigationRequest) (*api.Success, error)
- type UnsafeRouterServer
- type UpdateNavigationRequest
- func (*UpdateNavigationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNavigationRequest) GetId() string
- func (x *UpdateNavigationRequest) GetNavigationID() string
- func (x *UpdateNavigationRequest) GetNavigationName() string
- func (x *UpdateNavigationRequest) GetStatus() bool
- func (*UpdateNavigationRequest) ProtoMessage()
- func (x *UpdateNavigationRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNavigationRequest) Reset()
- func (x *UpdateNavigationRequest) String() string
- func (m *UpdateNavigationRequest) Validate() error
- func (m *UpdateNavigationRequest) ValidateAll() error
- type UpdateNavigationRequestMultiError
- type UpdateNavigationRequestValidationError
- func (e UpdateNavigationRequestValidationError) Cause() error
- func (e UpdateNavigationRequestValidationError) Error() string
- func (e UpdateNavigationRequestValidationError) ErrorName() string
- func (e UpdateNavigationRequestValidationError) Field() string
- func (e UpdateNavigationRequestValidationError) Key() bool
- func (e UpdateNavigationRequestValidationError) Reason() string
Constants ¶
Variables ¶
var File_api_auth_router_router_proto protoreflect.FileDescriptor
var Router_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.auth.router.Router", HandlerType: (*RouterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateNavigation", Handler: _Router_CreateNavigation_Handler, }, { MethodName: "UpdateNavigation", Handler: _Router_UpdateNavigation_Handler, }, { MethodName: "DeleteNavigation", Handler: _Router_DeleteNavigation_Handler, }, { MethodName: "GetNavigation", Handler: _Router_GetNavigation_Handler, }, { MethodName: "ListNavigation", Handler: _Router_ListNavigation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/auth/router/router.proto", }
Router_ServiceDesc is the grpc.ServiceDesc for Router service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRouterHTTPServer ¶
func RegisterRouterHTTPServer(s *http.Server, srv RouterHTTPServer)
func RegisterRouterServer ¶
func RegisterRouterServer(s grpc.ServiceRegistrar, srv RouterServer)
Types ¶
type CreateNavigationRequest ¶
type CreateNavigationRequest struct { // contains filtered or unexported fields }
func (*CreateNavigationRequest) Descriptor
deprecated
func (*CreateNavigationRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNavigationRequest.ProtoReflect.Descriptor instead.
func (*CreateNavigationRequest) GetNavigationID ¶
func (x *CreateNavigationRequest) GetNavigationID() string
func (*CreateNavigationRequest) GetNavigationName ¶
func (x *CreateNavigationRequest) GetNavigationName() string
func (*CreateNavigationRequest) ProtoMessage ¶
func (*CreateNavigationRequest) ProtoMessage()
func (*CreateNavigationRequest) ProtoReflect ¶
func (x *CreateNavigationRequest) ProtoReflect() protoreflect.Message
func (*CreateNavigationRequest) Reset ¶
func (x *CreateNavigationRequest) Reset()
func (*CreateNavigationRequest) String ¶
func (x *CreateNavigationRequest) String() string
func (*CreateNavigationRequest) Validate ¶
func (m *CreateNavigationRequest) Validate() error
Validate checks the field values on CreateNavigationRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateNavigationRequest) ValidateAll ¶
func (m *CreateNavigationRequest) ValidateAll() error
ValidateAll checks the field values on CreateNavigationRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateNavigationRequestMultiError, or nil if none found.
type CreateNavigationRequestMultiError ¶
type CreateNavigationRequestMultiError []error
CreateNavigationRequestMultiError is an error wrapping multiple validation errors returned by CreateNavigationRequest.ValidateAll() if the designated constraints aren't met.
func (CreateNavigationRequestMultiError) AllErrors ¶
func (m CreateNavigationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateNavigationRequestMultiError) Error ¶
func (m CreateNavigationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateNavigationRequestValidationError ¶
type CreateNavigationRequestValidationError struct {
// contains filtered or unexported fields
}
CreateNavigationRequestValidationError is the validation error returned by CreateNavigationRequest.Validate if the designated constraints aren't met.
func (CreateNavigationRequestValidationError) Cause ¶
func (e CreateNavigationRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateNavigationRequestValidationError) Error ¶
func (e CreateNavigationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateNavigationRequestValidationError) ErrorName ¶
func (e CreateNavigationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateNavigationRequestValidationError) Field ¶
func (e CreateNavigationRequestValidationError) Field() string
Field function returns field value.
func (CreateNavigationRequestValidationError) Key ¶
func (e CreateNavigationRequestValidationError) Key() bool
Key function returns key value.
func (CreateNavigationRequestValidationError) Reason ¶
func (e CreateNavigationRequestValidationError) Reason() string
Reason function returns reason value.
type GetNavigationReply ¶
type GetNavigationReply struct { // contains filtered or unexported fields }
func (*GetNavigationReply) Descriptor
deprecated
func (*GetNavigationReply) Descriptor() ([]byte, []int)
Deprecated: Use GetNavigationReply.ProtoReflect.Descriptor instead.
func (*GetNavigationReply) GetId ¶
func (x *GetNavigationReply) GetId() string
func (*GetNavigationReply) GetNavigationID ¶
func (x *GetNavigationReply) GetNavigationID() string
func (*GetNavigationReply) GetNavigationName ¶
func (x *GetNavigationReply) GetNavigationName() string
func (*GetNavigationReply) GetStatus ¶
func (x *GetNavigationReply) GetStatus() bool
func (*GetNavigationReply) ProtoMessage ¶
func (*GetNavigationReply) ProtoMessage()
func (*GetNavigationReply) ProtoReflect ¶
func (x *GetNavigationReply) ProtoReflect() protoreflect.Message
func (*GetNavigationReply) Reset ¶
func (x *GetNavigationReply) Reset()
func (*GetNavigationReply) String ¶
func (x *GetNavigationReply) String() string
func (*GetNavigationReply) Validate ¶
func (m *GetNavigationReply) Validate() error
Validate checks the field values on GetNavigationReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetNavigationReply) ValidateAll ¶
func (m *GetNavigationReply) ValidateAll() error
ValidateAll checks the field values on GetNavigationReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetNavigationReplyMultiError, or nil if none found.
type GetNavigationReplyMultiError ¶
type GetNavigationReplyMultiError []error
GetNavigationReplyMultiError is an error wrapping multiple validation errors returned by GetNavigationReply.ValidateAll() if the designated constraints aren't met.
func (GetNavigationReplyMultiError) AllErrors ¶
func (m GetNavigationReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetNavigationReplyMultiError) Error ¶
func (m GetNavigationReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetNavigationReplyValidationError ¶
type GetNavigationReplyValidationError struct {
// contains filtered or unexported fields
}
GetNavigationReplyValidationError is the validation error returned by GetNavigationReply.Validate if the designated constraints aren't met.
func (GetNavigationReplyValidationError) Cause ¶
func (e GetNavigationReplyValidationError) Cause() error
Cause function returns cause value.
func (GetNavigationReplyValidationError) Error ¶
func (e GetNavigationReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetNavigationReplyValidationError) ErrorName ¶
func (e GetNavigationReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetNavigationReplyValidationError) Field ¶
func (e GetNavigationReplyValidationError) Field() string
Field function returns field value.
func (GetNavigationReplyValidationError) Key ¶
func (e GetNavigationReplyValidationError) Key() bool
Key function returns key value.
func (GetNavigationReplyValidationError) Reason ¶
func (e GetNavigationReplyValidationError) Reason() string
Reason function returns reason value.
type ListNavigationReply ¶
type ListNavigationReply struct { // contains filtered or unexported fields }
func (*ListNavigationReply) Descriptor
deprecated
func (*ListNavigationReply) Descriptor() ([]byte, []int)
Deprecated: Use ListNavigationReply.ProtoReflect.Descriptor instead.
func (*ListNavigationReply) GetDataList ¶
func (x *ListNavigationReply) GetDataList() []*GetNavigationReply
func (*ListNavigationReply) GetPage ¶
func (x *ListNavigationReply) GetPage() int32
func (*ListNavigationReply) GetPerPage ¶
func (x *ListNavigationReply) GetPerPage() int32
func (*ListNavigationReply) GetTotal ¶
func (x *ListNavigationReply) GetTotal() int32
func (*ListNavigationReply) ProtoMessage ¶
func (*ListNavigationReply) ProtoMessage()
func (*ListNavigationReply) ProtoReflect ¶
func (x *ListNavigationReply) ProtoReflect() protoreflect.Message
func (*ListNavigationReply) Reset ¶
func (x *ListNavigationReply) Reset()
func (*ListNavigationReply) String ¶
func (x *ListNavigationReply) String() string
func (*ListNavigationReply) Validate ¶
func (m *ListNavigationReply) Validate() error
Validate checks the field values on ListNavigationReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListNavigationReply) ValidateAll ¶
func (m *ListNavigationReply) ValidateAll() error
ValidateAll checks the field values on ListNavigationReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListNavigationReplyMultiError, or nil if none found.
type ListNavigationReplyMultiError ¶
type ListNavigationReplyMultiError []error
ListNavigationReplyMultiError is an error wrapping multiple validation errors returned by ListNavigationReply.ValidateAll() if the designated constraints aren't met.
func (ListNavigationReplyMultiError) AllErrors ¶
func (m ListNavigationReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListNavigationReplyMultiError) Error ¶
func (m ListNavigationReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListNavigationReplyValidationError ¶
type ListNavigationReplyValidationError struct {
// contains filtered or unexported fields
}
ListNavigationReplyValidationError is the validation error returned by ListNavigationReply.Validate if the designated constraints aren't met.
func (ListNavigationReplyValidationError) Cause ¶
func (e ListNavigationReplyValidationError) Cause() error
Cause function returns cause value.
func (ListNavigationReplyValidationError) Error ¶
func (e ListNavigationReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListNavigationReplyValidationError) ErrorName ¶
func (e ListNavigationReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListNavigationReplyValidationError) Field ¶
func (e ListNavigationReplyValidationError) Field() string
Field function returns field value.
func (ListNavigationReplyValidationError) Key ¶
func (e ListNavigationReplyValidationError) Key() bool
Key function returns key value.
func (ListNavigationReplyValidationError) Reason ¶
func (e ListNavigationReplyValidationError) Reason() string
Reason function returns reason value.
type RouterClient ¶
type RouterClient interface {}
RouterClient is the client API for Router 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 NewRouterClient ¶
func NewRouterClient(cc grpc.ClientConnInterface) RouterClient
type RouterHTTPClient ¶
type RouterHTTPClient interface {}
func NewRouterHTTPClient ¶
func NewRouterHTTPClient(client *http.Client) RouterHTTPClient
type RouterHTTPClientImpl ¶
type RouterHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*RouterHTTPClientImpl) CreateNavigation ¶
func (c *RouterHTTPClientImpl) CreateNavigation(ctx context.Context, in *CreateNavigationRequest, opts ...http.CallOption) (*api.Success, error)
func (*RouterHTTPClientImpl) DeleteNavigation ¶
func (c *RouterHTTPClientImpl) DeleteNavigation(ctx context.Context, in *api.IDRequest, opts ...http.CallOption) (*api.Success, error)
func (*RouterHTTPClientImpl) GetNavigation ¶
func (c *RouterHTTPClientImpl) GetNavigation(ctx context.Context, in *api.IDRequest, opts ...http.CallOption) (*GetNavigationReply, error)
func (*RouterHTTPClientImpl) ListNavigation ¶
func (c *RouterHTTPClientImpl) ListNavigation(ctx context.Context, in *api.PageSearch, opts ...http.CallOption) (*ListNavigationReply, error)
func (*RouterHTTPClientImpl) UpdateNavigation ¶
func (c *RouterHTTPClientImpl) UpdateNavigation(ctx context.Context, in *UpdateNavigationRequest, opts ...http.CallOption) (*api.Success, error)
type RouterHTTPServer ¶
type RouterHTTPServer interface {}
type RouterServer ¶
type RouterServer interface { // contains filtered or unexported methods }
RouterServer is the server API for Router service. All implementations must embed UnimplementedRouterServer for forward compatibility
type UnimplementedRouterServer ¶
type UnimplementedRouterServer struct { }
UnimplementedRouterServer must be embedded to have forward compatible implementations.
func (UnimplementedRouterServer) CreateNavigation ¶
func (UnimplementedRouterServer) CreateNavigation(context.Context, *CreateNavigationRequest) (*api.Success, error)
func (UnimplementedRouterServer) DeleteNavigation ¶
func (UnimplementedRouterServer) GetNavigation ¶
func (UnimplementedRouterServer) GetNavigation(context.Context, *api.IDRequest) (*GetNavigationReply, error)
func (UnimplementedRouterServer) ListNavigation ¶
func (UnimplementedRouterServer) ListNavigation(context.Context, *api.PageSearch) (*ListNavigationReply, error)
func (UnimplementedRouterServer) UpdateNavigation ¶
func (UnimplementedRouterServer) UpdateNavigation(context.Context, *UpdateNavigationRequest) (*api.Success, error)
type UnsafeRouterServer ¶
type UnsafeRouterServer interface {
// contains filtered or unexported methods
}
UnsafeRouterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RouterServer will result in compilation errors.
type UpdateNavigationRequest ¶
type UpdateNavigationRequest struct { // contains filtered or unexported fields }
func (*UpdateNavigationRequest) Descriptor
deprecated
func (*UpdateNavigationRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNavigationRequest.ProtoReflect.Descriptor instead.
func (*UpdateNavigationRequest) GetId ¶
func (x *UpdateNavigationRequest) GetId() string
func (*UpdateNavigationRequest) GetNavigationID ¶
func (x *UpdateNavigationRequest) GetNavigationID() string
func (*UpdateNavigationRequest) GetNavigationName ¶
func (x *UpdateNavigationRequest) GetNavigationName() string
func (*UpdateNavigationRequest) GetStatus ¶
func (x *UpdateNavigationRequest) GetStatus() bool
func (*UpdateNavigationRequest) ProtoMessage ¶
func (*UpdateNavigationRequest) ProtoMessage()
func (*UpdateNavigationRequest) ProtoReflect ¶
func (x *UpdateNavigationRequest) ProtoReflect() protoreflect.Message
func (*UpdateNavigationRequest) Reset ¶
func (x *UpdateNavigationRequest) Reset()
func (*UpdateNavigationRequest) String ¶
func (x *UpdateNavigationRequest) String() string
func (*UpdateNavigationRequest) Validate ¶
func (m *UpdateNavigationRequest) Validate() error
Validate checks the field values on UpdateNavigationRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateNavigationRequest) ValidateAll ¶
func (m *UpdateNavigationRequest) ValidateAll() error
ValidateAll checks the field values on UpdateNavigationRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateNavigationRequestMultiError, or nil if none found.
type UpdateNavigationRequestMultiError ¶
type UpdateNavigationRequestMultiError []error
UpdateNavigationRequestMultiError is an error wrapping multiple validation errors returned by UpdateNavigationRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateNavigationRequestMultiError) AllErrors ¶
func (m UpdateNavigationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateNavigationRequestMultiError) Error ¶
func (m UpdateNavigationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateNavigationRequestValidationError ¶
type UpdateNavigationRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateNavigationRequestValidationError is the validation error returned by UpdateNavigationRequest.Validate if the designated constraints aren't met.
func (UpdateNavigationRequestValidationError) Cause ¶
func (e UpdateNavigationRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateNavigationRequestValidationError) Error ¶
func (e UpdateNavigationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateNavigationRequestValidationError) ErrorName ¶
func (e UpdateNavigationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateNavigationRequestValidationError) Field ¶
func (e UpdateNavigationRequestValidationError) Field() string
Field function returns field value.
func (UpdateNavigationRequestValidationError) Key ¶
func (e UpdateNavigationRequestValidationError) Key() bool
Key function returns key value.
func (UpdateNavigationRequestValidationError) Reason ¶
func (e UpdateNavigationRequestValidationError) Reason() string
Reason function returns reason value.