v1

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const OperationServiceGetSetting = "/manager_setting.Service/GetSetting"
View Source
const (
	Service_GetSetting_FullMethodName = "/manager_setting.Service/GetSetting"
)

Variables

View Source
var File_manager_setting_proto protoreflect.FileDescriptor
View Source
var File_manager_setting_service_proto protoreflect.FileDescriptor
View Source
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"`
	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 (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

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

Cause function returns cause value.

func (GetSettingReplyValidationError) Error

Error satisfies the builtin error interface

func (GetSettingReplyValidationError) ErrorName

func (e GetSettingReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetSettingReplyValidationError) Field

Field function returns field value.

func (GetSettingReplyValidationError) Key

Key function returns key value.

func (GetSettingReplyValidationError) Reason

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 ServiceHTTPServer interface {
	// GetSetting GetSetting 获取当前系统的配置
	GetSetting(context.Context, *emptypb.Empty) (*GetSettingReply, error)
}

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

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.

Jump to

Keyboard shortcuts

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