router

package
v0.0.0-...-c38fcd0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const OperationRouterCreateNavigation = "/api.auth.router.Router/CreateNavigation"
View Source
const OperationRouterDeleteNavigation = "/api.auth.router.Router/DeleteNavigation"
View Source
const OperationRouterGetNavigation = "/api.auth.router.Router/GetNavigation"
View Source
const OperationRouterListNavigation = "/api.auth.router.Router/ListNavigation"
View Source
const OperationRouterUpdateNavigation = "/api.auth.router.Router/UpdateNavigation"

Variables

View Source
var File_api_auth_router_router_proto protoreflect.FileDescriptor
View Source
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 {
	NavigationName string `protobuf:"bytes,1,opt,name=navigationName,proto3" json:"navigationName,omitempty"`
	NavigationID   string `protobuf:"bytes,2,opt,name=navigationID,proto3" json:"navigationID,omitempty"`
	// 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

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

Cause function returns cause value.

func (CreateNavigationRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateNavigationRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateNavigationRequestValidationError) Field

Field function returns field value.

func (CreateNavigationRequestValidationError) Key

Key function returns key value.

func (CreateNavigationRequestValidationError) Reason

Reason function returns reason value.

type GetNavigationReply

type GetNavigationReply struct {
	NavigationName string `protobuf:"bytes,1,opt,name=navigationName,proto3" json:"navigationName,omitempty"`
	NavigationID   string `protobuf:"bytes,2,opt,name=navigationID,proto3" json:"navigationID,omitempty"`
	Id             string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Status         bool   `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
	// 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

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

Cause function returns cause value.

func (GetNavigationReplyValidationError) Error

Error satisfies the builtin error interface

func (GetNavigationReplyValidationError) ErrorName

ErrorName returns error name.

func (GetNavigationReplyValidationError) Field

Field function returns field value.

func (GetNavigationReplyValidationError) Key

Key function returns key value.

func (GetNavigationReplyValidationError) Reason

Reason function returns reason value.

type ListNavigationReply

type ListNavigationReply struct {
	DataList []*GetNavigationReply `protobuf:"bytes,1,rep,name=dataList,proto3" json:"dataList,omitempty"`
	Total    int32                 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Page     int32                 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	PerPage  int32                 `protobuf:"varint,4,opt,name=perPage,proto3" json:"perPage,omitempty"`
	// 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

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

Cause function returns cause value.

func (ListNavigationReplyValidationError) Error

Error satisfies the builtin error interface

func (ListNavigationReplyValidationError) ErrorName

ErrorName returns error name.

func (ListNavigationReplyValidationError) Field

Field function returns field value.

func (ListNavigationReplyValidationError) Key

Key function returns key value.

func (ListNavigationReplyValidationError) Reason

Reason function returns reason value.

type RouterClient

type RouterClient interface {
	CreateNavigation(ctx context.Context, in *CreateNavigationRequest, opts ...grpc.CallOption) (*api.Success, error)
	UpdateNavigation(ctx context.Context, in *UpdateNavigationRequest, opts ...grpc.CallOption) (*api.Success, error)
	DeleteNavigation(ctx context.Context, in *api.IDRequest, opts ...grpc.CallOption) (*api.Success, error)
	GetNavigation(ctx context.Context, in *api.IDRequest, opts ...grpc.CallOption) (*GetNavigationReply, error)
	ListNavigation(ctx context.Context, in *api.PageSearch, opts ...grpc.CallOption) (*ListNavigationReply, error)
}

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 {
	CreateNavigation(ctx context.Context, req *CreateNavigationRequest, opts ...http.CallOption) (rsp *api.Success, err error)
	DeleteNavigation(ctx context.Context, req *api.IDRequest, opts ...http.CallOption) (rsp *api.Success, err error)
	GetNavigation(ctx context.Context, req *api.IDRequest, opts ...http.CallOption) (rsp *GetNavigationReply, err error)
	ListNavigation(ctx context.Context, req *api.PageSearch, opts ...http.CallOption) (rsp *ListNavigationReply, err error)
	UpdateNavigation(ctx context.Context, req *UpdateNavigationRequest, opts ...http.CallOption) (rsp *api.Success, err error)
}

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 {
	CreateNavigation(context.Context, *CreateNavigationRequest) (*api.Success, error)
	DeleteNavigation(context.Context, *api.IDRequest) (*api.Success, error)
	GetNavigation(context.Context, *api.IDRequest) (*GetNavigationReply, error)
	ListNavigation(context.Context, *api.PageSearch) (*ListNavigationReply, error)
	UpdateNavigation(context.Context, *UpdateNavigationRequest) (*api.Success, error)
}

type RouterServer

type RouterServer interface {
	CreateNavigation(context.Context, *CreateNavigationRequest) (*api.Success, error)
	UpdateNavigation(context.Context, *UpdateNavigationRequest) (*api.Success, error)
	DeleteNavigation(context.Context, *api.IDRequest) (*api.Success, error)
	GetNavigation(context.Context, *api.IDRequest) (*GetNavigationReply, error)
	ListNavigation(context.Context, *api.PageSearch) (*ListNavigationReply, error)
	// 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) DeleteNavigation

func (UnimplementedRouterServer) GetNavigation

func (UnimplementedRouterServer) ListNavigation

func (UnimplementedRouterServer) UpdateNavigation

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 {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	NavigationName string `protobuf:"bytes,2,opt,name=navigationName,proto3" json:"navigationName,omitempty"`
	Status         bool   `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	NavigationID   string `protobuf:"bytes,4,opt,name=navigationID,proto3" json:"navigationID,omitempty"`
	// 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

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

Cause function returns cause value.

func (UpdateNavigationRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateNavigationRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateNavigationRequestValidationError) Field

Field function returns field value.

func (UpdateNavigationRequestValidationError) Key

Key function returns key value.

func (UpdateNavigationRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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