Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_shop_job_v1_shop_job_proto protoreflect.FileDescriptor
var ShopJob_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shop.admin.v1.ShopJob", HandlerType: (*ShopJobServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, Metadata: "shop/job/v1/shop_job.proto", }
ShopJob_ServiceDesc is the grpc.ServiceDesc for ShopJob service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterShopJobServer ¶
func RegisterShopJobServer(s grpc.ServiceRegistrar, srv ShopJobServer)
Types ¶
type Foo ¶
type Foo struct {
// contains filtered or unexported fields
}
func (*Foo) Descriptor
deprecated
func (*Foo) ProtoMessage ¶
func (*Foo) ProtoMessage()
func (*Foo) ProtoReflect ¶
func (x *Foo) ProtoReflect() protoreflect.Message
func (*Foo) Validate ¶
Validate checks the field values on Foo 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 (*Foo) ValidateAll ¶
ValidateAll checks the field values on Foo 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 FooMultiError, or nil if none found.
type FooMultiError ¶
type FooMultiError []error
FooMultiError is an error wrapping multiple validation errors returned by Foo.ValidateAll() if the designated constraints aren't met.
func (FooMultiError) AllErrors ¶
func (m FooMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FooMultiError) Error ¶
func (m FooMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FooValidationError ¶
type FooValidationError struct {
// contains filtered or unexported fields
}
FooValidationError is the validation error returned by Foo.Validate if the designated constraints aren't met.
func (FooValidationError) Cause ¶
func (e FooValidationError) Cause() error
Cause function returns cause value.
func (FooValidationError) Error ¶
func (e FooValidationError) Error() string
Error satisfies the builtin error interface
func (FooValidationError) ErrorName ¶
func (e FooValidationError) ErrorName() string
ErrorName returns error name.
func (FooValidationError) Field ¶
func (e FooValidationError) Field() string
Field function returns field value.
func (FooValidationError) Key ¶
func (e FooValidationError) Key() bool
Key function returns key value.
func (FooValidationError) Reason ¶
func (e FooValidationError) Reason() string
Reason function returns reason value.
type ShopJobClient ¶
type ShopJobClient interface { }
ShopJobClient is the client API for ShopJob 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 NewShopJobClient ¶
func NewShopJobClient(cc grpc.ClientConnInterface) ShopJobClient
type ShopJobServer ¶
type ShopJobServer interface {
// contains filtered or unexported methods
}
ShopJobServer is the server API for ShopJob service. All implementations must embed UnimplementedShopJobServer for forward compatibility
type UnimplementedShopJobServer ¶
type UnimplementedShopJobServer struct { }
UnimplementedShopJobServer must be embedded to have forward compatible implementations.
type UnsafeShopJobServer ¶
type UnsafeShopJobServer interface {
// contains filtered or unexported methods
}
UnsafeShopJobServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShopJobServer will result in compilation errors.