Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type GetSettingReply
- func (*GetSettingReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetSettingReply) GetCopyright() string
- func (x *GetSettingReply) GetDebug() bool
- func (x *GetSettingReply) GetDesc() string
- func (x *GetSettingReply) GetId() int64
- func (x *GetSettingReply) GetLogo() string
- func (x *GetSettingReply) GetName() string
- func (x *GetSettingReply) GetTitle() string
- func (*GetSettingReply) ProtoMessage()
- func (x *GetSettingReply) ProtoReflect() protoreflect.Message
- func (x *GetSettingReply) Reset()
- func (x *GetSettingReply) String() string
- func (m *GetSettingReply) Validate() error
- func (m *GetSettingReply) ValidateAll() error
- type GetSettingReplyMultiError
- type GetSettingReplyValidationError
- func (e GetSettingReplyValidationError) Cause() error
- func (e GetSettingReplyValidationError) Error() string
- func (e GetSettingReplyValidationError) ErrorName() string
- func (e GetSettingReplyValidationError) Field() string
- func (e GetSettingReplyValidationError) Key() bool
- func (e GetSettingReplyValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
const OperationServiceGetSetting = "/manager_setting.Service/GetSetting"
const (
Service_GetSetting_FullMethodName = "/manager_setting.Service/GetSetting"
)
Variables ¶
var File_manager_setting_proto protoreflect.FileDescriptor
var File_manager_setting_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager_setting.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSetting", Handler: _Service_GetSetting_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "manager_setting_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type GetSettingReply ¶
type GetSettingReply struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Debug bool `protobuf:"varint,2,opt,name=debug,proto3" json:"debug,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"` Copyright string `protobuf:"bytes,5,opt,name=copyright,proto3" json:"copyright,omitempty"` Logo string `protobuf:"bytes,6,opt,name=logo,proto3" json:"logo,omitempty"` Id int64 `protobuf:"varint,7,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetSettingReply) Descriptor
deprecated
func (*GetSettingReply) Descriptor() ([]byte, []int)
Deprecated: Use GetSettingReply.ProtoReflect.Descriptor instead.
func (*GetSettingReply) GetCopyright ¶
func (x *GetSettingReply) GetCopyright() string
func (*GetSettingReply) GetDebug ¶
func (x *GetSettingReply) GetDebug() bool
func (*GetSettingReply) GetDesc ¶
func (x *GetSettingReply) GetDesc() string
func (*GetSettingReply) GetId ¶
func (x *GetSettingReply) GetId() int64
func (*GetSettingReply) GetLogo ¶
func (x *GetSettingReply) GetLogo() string
func (*GetSettingReply) GetName ¶
func (x *GetSettingReply) GetName() string
func (*GetSettingReply) GetTitle ¶
func (x *GetSettingReply) GetTitle() string
func (*GetSettingReply) ProtoMessage ¶
func (*GetSettingReply) ProtoMessage()
func (*GetSettingReply) ProtoReflect ¶
func (x *GetSettingReply) ProtoReflect() protoreflect.Message
func (*GetSettingReply) Reset ¶
func (x *GetSettingReply) Reset()
func (*GetSettingReply) String ¶
func (x *GetSettingReply) String() string
func (*GetSettingReply) Validate ¶
func (m *GetSettingReply) Validate() error
Validate checks the field values on GetSettingReply 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 (*GetSettingReply) ValidateAll ¶
func (m *GetSettingReply) ValidateAll() error
ValidateAll checks the field values on GetSettingReply 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 GetSettingReplyMultiError, or nil if none found.
type GetSettingReplyMultiError ¶
type GetSettingReplyMultiError []error
GetSettingReplyMultiError is an error wrapping multiple validation errors returned by GetSettingReply.ValidateAll() if the designated constraints aren't met.
func (GetSettingReplyMultiError) AllErrors ¶
func (m GetSettingReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSettingReplyMultiError) Error ¶
func (m GetSettingReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSettingReplyValidationError ¶
type GetSettingReplyValidationError struct {
// contains filtered or unexported fields
}
GetSettingReplyValidationError is the validation error returned by GetSettingReply.Validate if the designated constraints aren't met.
func (GetSettingReplyValidationError) Cause ¶
func (e GetSettingReplyValidationError) Cause() error
Cause function returns cause value.
func (GetSettingReplyValidationError) Error ¶
func (e GetSettingReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetSettingReplyValidationError) ErrorName ¶
func (e GetSettingReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetSettingReplyValidationError) Field ¶
func (e GetSettingReplyValidationError) Field() string
Field function returns field value.
func (GetSettingReplyValidationError) Key ¶
func (e GetSettingReplyValidationError) Key() bool
Key function returns key value.
func (GetSettingReplyValidationError) Reason ¶
func (e GetSettingReplyValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { // GetSetting 获取当前系统的配置 GetSetting(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetSettingReply, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface {
GetSetting(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetSettingReply, err error)
}
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) GetSetting ¶
func (c *ServiceHTTPClientImpl) GetSetting(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetSettingReply, error)
type ServiceHTTPServer ¶
type ServiceServer ¶
type ServiceServer interface { // GetSetting 获取当前系统的配置 GetSetting(context.Context, *emptypb.Empty) (*GetSettingReply, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) GetSetting ¶
func (UnimplementedServiceServer) GetSetting(context.Context, *emptypb.Empty) (*GetSettingReply, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.