Documentation ¶
Index ¶
- Variables
- func RegisterInterfaceServer(s grpc.ServiceRegistrar, srv InterfaceServer)
- type Code
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetConfig() []byte
- func (x *Config) GetConfigType() ConfigType
- func (x *Config) GetName() string
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type ConfigType
- type CreateByConfigReq
- func (*CreateByConfigReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateByConfigReq) GetConfig() *Config
- func (x *CreateByConfigReq) GetCustomOption() string
- func (x *CreateByConfigReq) GetIndex() string
- func (x *CreateByConfigReq) GetOpt() *Option
- func (*CreateByConfigReq) ProtoMessage()
- func (x *CreateByConfigReq) ProtoReflect() protoreflect.Message
- func (x *CreateByConfigReq) Reset()
- func (x *CreateByConfigReq) String() string
- type CreateByConfigRsp
- func (*CreateByConfigRsp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateByConfigRsp) GetCode() Code
- func (x *CreateByConfigRsp) GetMsg() string
- func (*CreateByConfigRsp) ProtoMessage()
- func (x *CreateByConfigRsp) ProtoReflect() protoreflect.Message
- func (x *CreateByConfigRsp) Reset()
- func (x *CreateByConfigRsp) String() string
- type CreateReq
- func (*CreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReq) GetConfigType() ConfigType
- func (x *CreateReq) GetCustomOption() string
- func (x *CreateReq) GetOpt() *Option
- func (*CreateReq) ProtoMessage()
- func (x *CreateReq) ProtoReflect() protoreflect.Message
- func (x *CreateReq) Reset()
- func (x *CreateReq) String() string
- type CreateRsp
- func (*CreateRsp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRsp) GetCode() Code
- func (x *CreateRsp) GetConfig() *Config
- func (x *CreateRsp) GetIndex() string
- func (x *CreateRsp) GetMsg() string
- func (*CreateRsp) ProtoMessage()
- func (x *CreateRsp) ProtoReflect() protoreflect.Message
- func (x *CreateRsp) Reset()
- func (x *CreateRsp) String() string
- type CustomOptionSchemaReq
- type CustomOptionSchemaRsp
- func (*CustomOptionSchemaRsp) Descriptor() ([]byte, []int)deprecated
- func (x *CustomOptionSchemaRsp) GetFields() []*Field
- func (*CustomOptionSchemaRsp) ProtoMessage()
- func (x *CustomOptionSchemaRsp) ProtoReflect() protoreflect.Message
- func (x *CustomOptionSchemaRsp) Reset()
- func (x *CustomOptionSchemaRsp) String() string
- type DeleteReq
- type DeleteRsp
- type Field
- type GetAllReq
- type GetAllRsp
- func (*GetAllRsp) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllRsp) GetAll() map[string]*Config
- func (x *GetAllRsp) GetCode() Code
- func (x *GetAllRsp) GetMsg() string
- func (*GetAllRsp) ProtoMessage()
- func (x *GetAllRsp) ProtoReflect() protoreflect.Message
- func (x *GetAllRsp) Reset()
- func (x *GetAllRsp) String() string
- type GetReq
- type GetRsp
- func (*GetRsp) Descriptor() ([]byte, []int)deprecated
- func (x *GetRsp) GetCode() Code
- func (x *GetRsp) GetConfig() *Config
- func (x *GetRsp) GetIndex() string
- func (x *GetRsp) GetMsg() string
- func (*GetRsp) ProtoMessage()
- func (x *GetRsp) ProtoReflect() protoreflect.Message
- func (x *GetRsp) Reset()
- func (x *GetRsp) String() string
- type GetStatReq
- type GetStatRsp
- func (*GetStatRsp) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatRsp) GetCode() Code
- func (x *GetStatRsp) GetMsg() string
- func (x *GetStatRsp) GetStat() *Stat
- func (*GetStatRsp) ProtoMessage()
- func (x *GetStatRsp) ProtoReflect() protoreflect.Message
- func (x *GetStatRsp) Reset()
- func (x *GetStatRsp) String() string
- type InterfaceClient
- type InterfaceServer
- type IsSupportPersistenceReq
- type IsSupportPersistenceRsp
- func (*IsSupportPersistenceRsp) Descriptor() ([]byte, []int)deprecated
- func (x *IsSupportPersistenceRsp) GetIsSupport() bool
- func (*IsSupportPersistenceRsp) ProtoMessage()
- func (x *IsSupportPersistenceRsp) ProtoReflect() protoreflect.Message
- func (x *IsSupportPersistenceRsp) Reset()
- func (x *IsSupportPersistenceRsp) String() string
- type NameReq
- type NameRsp
- type Option
- type SetMetadataReq
- func (*SetMetadataReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetMetadataReq) GetDomain() string
- func (x *SetMetadataReq) GetIP() string
- func (*SetMetadataReq) ProtoMessage()
- func (x *SetMetadataReq) ProtoReflect() protoreflect.Message
- func (x *SetMetadataReq) Reset()
- func (x *SetMetadataReq) String() string
- type SetMetadataRsp
- type Stat
- type Type
- type UnimplementedInterfaceServer
- func (UnimplementedInterfaceServer) Create(context.Context, *CreateReq) (*CreateRsp, error)
- func (UnimplementedInterfaceServer) CreateByConfig(context.Context, *CreateByConfigReq) (*CreateByConfigRsp, error)
- func (UnimplementedInterfaceServer) CustomOptionSchema(context.Context, *CustomOptionSchemaReq) (*CustomOptionSchemaRsp, error)
- func (UnimplementedInterfaceServer) Delete(context.Context, *DeleteReq) (*DeleteRsp, error)
- func (UnimplementedInterfaceServer) Get(context.Context, *GetReq) (*GetRsp, error)
- func (UnimplementedInterfaceServer) GetAll(context.Context, *GetAllReq) (*GetAllRsp, error)
- func (UnimplementedInterfaceServer) GetStat(context.Context, *GetStatReq) (*GetStatRsp, error)
- func (UnimplementedInterfaceServer) IsSupportPersistence(context.Context, *IsSupportPersistenceReq) (*IsSupportPersistenceRsp, error)
- func (UnimplementedInterfaceServer) Name(context.Context, *NameReq) (*NameRsp, error)
- func (UnimplementedInterfaceServer) SetMetadata(context.Context, *SetMetadataReq) (*SetMetadataRsp, error)
- func (UnimplementedInterfaceServer) UpdateOption(context.Context, *UpdateOptionReq) (*UpdateOptionRsp, error)
- type UnsafeInterfaceServer
- type UpdateOptionReq
- func (*UpdateOptionReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOptionReq) GetIndex() string
- func (x *UpdateOptionReq) GetOpt() *Option
- func (*UpdateOptionReq) ProtoMessage()
- func (x *UpdateOptionReq) ProtoReflect() protoreflect.Message
- func (x *UpdateOptionReq) Reset()
- func (x *UpdateOptionReq) String() string
- type UpdateOptionRsp
- func (*UpdateOptionRsp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOptionRsp) GetCode() Code
- func (x *UpdateOptionRsp) GetMsg() string
- func (*UpdateOptionRsp) ProtoMessage()
- func (x *UpdateOptionRsp) ProtoReflect() protoreflect.Message
- func (x *UpdateOptionRsp) Reset()
- func (x *UpdateOptionRsp) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Type_name = map[int32]string{ 0: "String", 1: "Number", 2: "Bool", 3: "StringArray", } Type_value = map[string]int32{ "String": 0, "Number": 1, "Bool": 2, "StringArray": 3, } )
Enum value maps for Type.
var ( ConfigType_name = map[int32]string{ 0: "JSON", 1: "YAML", 2: "URL", 3: "TEXT", } ConfigType_value = map[string]int32{ "JSON": 0, "YAML": 1, "URL": 2, "TEXT": 3, } )
Enum value maps for ConfigType.
var ( Code_name = map[int32]string{ 0: "OK", 10404: "NotFound", 10500: "Fail", } Code_value = map[string]int32{ "OK": 0, "NotFound": 10404, "Fail": 10500, } )
Enum value maps for Code.
var File_proto_simple_interface_interface_proto protoreflect.FileDescriptor
var Interface_ServiceDesc = grpc.ServiceDesc{ ServiceName: "interface.Interface", HandlerType: (*InterfaceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Name", Handler: _Interface_Name_Handler, }, { MethodName: "IsSupportPersistence", Handler: _Interface_IsSupportPersistence_Handler, }, { MethodName: "CustomOptionSchema", Handler: _Interface_CustomOptionSchema_Handler, }, { MethodName: "SetMetadata", Handler: _Interface_SetMetadata_Handler, }, { MethodName: "Create", Handler: _Interface_Create_Handler, }, { MethodName: "CreateByConfig", Handler: _Interface_CreateByConfig_Handler, }, { MethodName: "Get", Handler: _Interface_Get_Handler, }, { MethodName: "Delete", Handler: _Interface_Delete_Handler, }, { MethodName: "GetAll", Handler: _Interface_GetAll_Handler, }, { MethodName: "UpdateOption", Handler: _Interface_UpdateOption_Handler, }, { MethodName: "GetStat", Handler: _Interface_GetStat_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/simple-interface/interface.proto", }
Interface_ServiceDesc is the grpc.ServiceDesc for Interface service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInterfaceServer ¶
func RegisterInterfaceServer(s grpc.ServiceRegistrar, srv InterfaceServer)
Types ¶
type Code ¶
type Code int32
func (Code) Descriptor ¶
func (Code) Descriptor() protoreflect.EnumDescriptor
func (Code) EnumDescriptor
deprecated
func (Code) Number ¶
func (x Code) Number() protoreflect.EnumNumber
func (Code) Type ¶
func (Code) Type() protoreflect.EnumType
type Config ¶
type Config struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` ConfigType ConfigType `protobuf:"varint,2,opt,name=ConfigType,proto3,enum=interface.ConfigType" json:"ConfigType,omitempty"` Config []byte `protobuf:"bytes,3,opt,name=Config,proto3" json:"Config,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetConfigType ¶
func (x *Config) GetConfigType() ConfigType
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type ConfigType ¶
type ConfigType int32
const ( ConfigType_JSON ConfigType = 0 ConfigType_YAML ConfigType = 1 ConfigType_URL ConfigType = 2 ConfigType_TEXT ConfigType = 3 )
func (ConfigType) Descriptor ¶
func (ConfigType) Descriptor() protoreflect.EnumDescriptor
func (ConfigType) Enum ¶
func (x ConfigType) Enum() *ConfigType
func (ConfigType) EnumDescriptor
deprecated
func (ConfigType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConfigType.Descriptor instead.
func (ConfigType) Number ¶
func (x ConfigType) Number() protoreflect.EnumNumber
func (ConfigType) String ¶
func (x ConfigType) String() string
func (ConfigType) Type ¶
func (ConfigType) Type() protoreflect.EnumType
type CreateByConfigReq ¶
type CreateByConfigReq struct { Index string `protobuf:"bytes,1,opt,name=Index,proto3" json:"Index,omitempty"` Config *Config `protobuf:"bytes,2,opt,name=Config,proto3" json:"Config,omitempty"` Opt *Option `protobuf:"bytes,3,opt,name=Opt,proto3" json:"Opt,omitempty"` CustomOption string `protobuf:"bytes,4,opt,name=CustomOption,proto3" json:"CustomOption,omitempty"` // in json // contains filtered or unexported fields }
func (*CreateByConfigReq) Descriptor
deprecated
func (*CreateByConfigReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateByConfigReq.ProtoReflect.Descriptor instead.
func (*CreateByConfigReq) GetConfig ¶
func (x *CreateByConfigReq) GetConfig() *Config
func (*CreateByConfigReq) GetCustomOption ¶
func (x *CreateByConfigReq) GetCustomOption() string
func (*CreateByConfigReq) GetIndex ¶
func (x *CreateByConfigReq) GetIndex() string
func (*CreateByConfigReq) GetOpt ¶
func (x *CreateByConfigReq) GetOpt() *Option
func (*CreateByConfigReq) ProtoMessage ¶
func (*CreateByConfigReq) ProtoMessage()
func (*CreateByConfigReq) ProtoReflect ¶
func (x *CreateByConfigReq) ProtoReflect() protoreflect.Message
func (*CreateByConfigReq) Reset ¶
func (x *CreateByConfigReq) Reset()
func (*CreateByConfigReq) String ¶
func (x *CreateByConfigReq) String() string
type CreateByConfigRsp ¶
type CreateByConfigRsp struct { Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=interface.Code" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` // contains filtered or unexported fields }
func (*CreateByConfigRsp) Descriptor
deprecated
func (*CreateByConfigRsp) Descriptor() ([]byte, []int)
Deprecated: Use CreateByConfigRsp.ProtoReflect.Descriptor instead.
func (*CreateByConfigRsp) GetCode ¶
func (x *CreateByConfigRsp) GetCode() Code
func (*CreateByConfigRsp) GetMsg ¶
func (x *CreateByConfigRsp) GetMsg() string
func (*CreateByConfigRsp) ProtoMessage ¶
func (*CreateByConfigRsp) ProtoMessage()
func (*CreateByConfigRsp) ProtoReflect ¶
func (x *CreateByConfigRsp) ProtoReflect() protoreflect.Message
func (*CreateByConfigRsp) Reset ¶
func (x *CreateByConfigRsp) Reset()
func (*CreateByConfigRsp) String ¶
func (x *CreateByConfigRsp) String() string
type CreateReq ¶
type CreateReq struct { Opt *Option `protobuf:"bytes,1,opt,name=Opt,proto3" json:"Opt,omitempty"` ConfigType ConfigType `protobuf:"varint,2,opt,name=ConfigType,proto3,enum=interface.ConfigType" json:"ConfigType,omitempty"` CustomOption string `protobuf:"bytes,3,opt,name=CustomOption,proto3" json:"CustomOption,omitempty"` // in json // contains filtered or unexported fields }
func (*CreateReq) Descriptor
deprecated
func (*CreateReq) GetConfigType ¶
func (x *CreateReq) GetConfigType() ConfigType
func (*CreateReq) GetCustomOption ¶
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
func (*CreateReq) ProtoReflect ¶
func (x *CreateReq) ProtoReflect() protoreflect.Message
type CreateRsp ¶
type CreateRsp struct { Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=interface.Code" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` Index string `protobuf:"bytes,3,opt,name=Index,proto3" json:"Index,omitempty"` Config *Config `protobuf:"bytes,4,opt,name=Config,proto3" json:"Config,omitempty"` // contains filtered or unexported fields }
func (*CreateRsp) Descriptor
deprecated
func (*CreateRsp) ProtoMessage ¶
func (*CreateRsp) ProtoMessage()
func (*CreateRsp) ProtoReflect ¶
func (x *CreateRsp) ProtoReflect() protoreflect.Message
type CustomOptionSchemaReq ¶
type CustomOptionSchemaReq struct {
// contains filtered or unexported fields
}
func (*CustomOptionSchemaReq) Descriptor
deprecated
func (*CustomOptionSchemaReq) Descriptor() ([]byte, []int)
Deprecated: Use CustomOptionSchemaReq.ProtoReflect.Descriptor instead.
func (*CustomOptionSchemaReq) ProtoMessage ¶
func (*CustomOptionSchemaReq) ProtoMessage()
func (*CustomOptionSchemaReq) ProtoReflect ¶
func (x *CustomOptionSchemaReq) ProtoReflect() protoreflect.Message
func (*CustomOptionSchemaReq) Reset ¶
func (x *CustomOptionSchemaReq) Reset()
func (*CustomOptionSchemaReq) String ¶
func (x *CustomOptionSchemaReq) String() string
type CustomOptionSchemaRsp ¶
type CustomOptionSchemaRsp struct { Fields []*Field `protobuf:"bytes,1,rep,name=Fields,proto3" json:"Fields,omitempty"` // contains filtered or unexported fields }
func (*CustomOptionSchemaRsp) Descriptor
deprecated
func (*CustomOptionSchemaRsp) Descriptor() ([]byte, []int)
Deprecated: Use CustomOptionSchemaRsp.ProtoReflect.Descriptor instead.
func (*CustomOptionSchemaRsp) GetFields ¶
func (x *CustomOptionSchemaRsp) GetFields() []*Field
func (*CustomOptionSchemaRsp) ProtoMessage ¶
func (*CustomOptionSchemaRsp) ProtoMessage()
func (*CustomOptionSchemaRsp) ProtoReflect ¶
func (x *CustomOptionSchemaRsp) ProtoReflect() protoreflect.Message
func (*CustomOptionSchemaRsp) Reset ¶
func (x *CustomOptionSchemaRsp) Reset()
func (*CustomOptionSchemaRsp) String ¶
func (x *CustomOptionSchemaRsp) String() string
type DeleteReq ¶
type DeleteReq struct { Index string `protobuf:"bytes,1,opt,name=Index,proto3" json:"Index,omitempty"` // contains filtered or unexported fields }
func (*DeleteReq) Descriptor
deprecated
func (*DeleteReq) ProtoMessage ¶
func (*DeleteReq) ProtoMessage()
func (*DeleteReq) ProtoReflect ¶
func (x *DeleteReq) ProtoReflect() protoreflect.Message
type DeleteRsp ¶
type DeleteRsp struct { Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=interface.Code" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` // contains filtered or unexported fields }
func (*DeleteRsp) Descriptor
deprecated
func (*DeleteRsp) ProtoMessage ¶
func (*DeleteRsp) ProtoMessage()
func (*DeleteRsp) ProtoReflect ¶
func (x *DeleteRsp) ProtoReflect() protoreflect.Message
type Field ¶
type Field struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Type Type `protobuf:"varint,2,opt,name=Type,proto3,enum=interface.Type" json:"Type,omitempty"` Optional []string `protobuf:"bytes,3,rep,name=optional,proto3" json:"optional,omitempty"` // contains filtered or unexported fields }
func (*Field) Descriptor
deprecated
func (*Field) GetOptional ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
type GetAllReq ¶
type GetAllReq struct { ConfigType ConfigType `protobuf:"varint,1,opt,name=ConfigType,proto3,enum=interface.ConfigType" json:"ConfigType,omitempty"` // contains filtered or unexported fields }
func (*GetAllReq) Descriptor
deprecated
func (*GetAllReq) GetConfigType ¶
func (x *GetAllReq) GetConfigType() ConfigType
func (*GetAllReq) ProtoMessage ¶
func (*GetAllReq) ProtoMessage()
func (*GetAllReq) ProtoReflect ¶
func (x *GetAllReq) ProtoReflect() protoreflect.Message
type GetAllRsp ¶
type GetAllRsp struct { Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=interface.Code" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` All map[string]*Config `` // Index, Config /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetAllRsp) Descriptor
deprecated
func (*GetAllRsp) ProtoMessage ¶
func (*GetAllRsp) ProtoMessage()
func (*GetAllRsp) ProtoReflect ¶
func (x *GetAllRsp) ProtoReflect() protoreflect.Message
type GetReq ¶
type GetReq struct { Index string `protobuf:"bytes,1,opt,name=Index,proto3" json:"Index,omitempty"` ConfigType ConfigType `protobuf:"varint,2,opt,name=ConfigType,proto3,enum=interface.ConfigType" json:"ConfigType,omitempty"` // contains filtered or unexported fields }
func (*GetReq) Descriptor
deprecated
func (*GetReq) GetConfigType ¶
func (x *GetReq) GetConfigType() ConfigType
func (*GetReq) ProtoMessage ¶
func (*GetReq) ProtoMessage()
func (*GetReq) ProtoReflect ¶
func (x *GetReq) ProtoReflect() protoreflect.Message
type GetRsp ¶
type GetRsp struct { Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=interface.Code" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` Index string `protobuf:"bytes,3,opt,name=Index,proto3" json:"Index,omitempty"` Config *Config `protobuf:"bytes,4,opt,name=Config,proto3" json:"Config,omitempty"` // contains filtered or unexported fields }
func (*GetRsp) Descriptor
deprecated
func (*GetRsp) ProtoMessage ¶
func (*GetRsp) ProtoMessage()
func (*GetRsp) ProtoReflect ¶
func (x *GetRsp) ProtoReflect() protoreflect.Message
type GetStatReq ¶
type GetStatReq struct { Index string `protobuf:"bytes,1,opt,name=Index,proto3" json:"Index,omitempty"` // contains filtered or unexported fields }
func (*GetStatReq) Descriptor
deprecated
func (*GetStatReq) Descriptor() ([]byte, []int)
Deprecated: Use GetStatReq.ProtoReflect.Descriptor instead.
func (*GetStatReq) GetIndex ¶
func (x *GetStatReq) GetIndex() string
func (*GetStatReq) ProtoMessage ¶
func (*GetStatReq) ProtoMessage()
func (*GetStatReq) ProtoReflect ¶
func (x *GetStatReq) ProtoReflect() protoreflect.Message
func (*GetStatReq) Reset ¶
func (x *GetStatReq) Reset()
func (*GetStatReq) String ¶
func (x *GetStatReq) String() string
type GetStatRsp ¶
type GetStatRsp struct { Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=interface.Code" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` Stat *Stat `protobuf:"bytes,3,opt,name=Stat,proto3" json:"Stat,omitempty"` // contains filtered or unexported fields }
func (*GetStatRsp) Descriptor
deprecated
func (*GetStatRsp) Descriptor() ([]byte, []int)
Deprecated: Use GetStatRsp.ProtoReflect.Descriptor instead.
func (*GetStatRsp) GetCode ¶
func (x *GetStatRsp) GetCode() Code
func (*GetStatRsp) GetMsg ¶
func (x *GetStatRsp) GetMsg() string
func (*GetStatRsp) GetStat ¶
func (x *GetStatRsp) GetStat() *Stat
func (*GetStatRsp) ProtoMessage ¶
func (*GetStatRsp) ProtoMessage()
func (*GetStatRsp) ProtoReflect ¶
func (x *GetStatRsp) ProtoReflect() protoreflect.Message
func (*GetStatRsp) Reset ¶
func (x *GetStatRsp) Reset()
func (*GetStatRsp) String ¶
func (x *GetStatRsp) String() string
type InterfaceClient ¶
type InterfaceClient interface { Name(ctx context.Context, in *NameReq, opts ...grpc.CallOption) (*NameRsp, error) IsSupportPersistence(ctx context.Context, in *IsSupportPersistenceReq, opts ...grpc.CallOption) (*IsSupportPersistenceRsp, error) CustomOptionSchema(ctx context.Context, in *CustomOptionSchemaReq, opts ...grpc.CallOption) (*CustomOptionSchemaRsp, error) SetMetadata(ctx context.Context, in *SetMetadataReq, opts ...grpc.CallOption) (*SetMetadataRsp, error) Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateRsp, error) CreateByConfig(ctx context.Context, in *CreateByConfigReq, opts ...grpc.CallOption) (*CreateByConfigRsp, error) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetRsp, error) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteRsp, error) GetAll(ctx context.Context, in *GetAllReq, opts ...grpc.CallOption) (*GetAllRsp, error) UpdateOption(ctx context.Context, in *UpdateOptionReq, opts ...grpc.CallOption) (*UpdateOptionRsp, error) GetStat(ctx context.Context, in *GetStatReq, opts ...grpc.CallOption) (*GetStatRsp, error) }
InterfaceClient is the client API for Interface 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 NewInterfaceClient ¶
func NewInterfaceClient(cc grpc.ClientConnInterface) InterfaceClient
type InterfaceServer ¶
type InterfaceServer interface { Name(context.Context, *NameReq) (*NameRsp, error) IsSupportPersistence(context.Context, *IsSupportPersistenceReq) (*IsSupportPersistenceRsp, error) CustomOptionSchema(context.Context, *CustomOptionSchemaReq) (*CustomOptionSchemaRsp, error) SetMetadata(context.Context, *SetMetadataReq) (*SetMetadataRsp, error) Create(context.Context, *CreateReq) (*CreateRsp, error) CreateByConfig(context.Context, *CreateByConfigReq) (*CreateByConfigRsp, error) Get(context.Context, *GetReq) (*GetRsp, error) Delete(context.Context, *DeleteReq) (*DeleteRsp, error) GetAll(context.Context, *GetAllReq) (*GetAllRsp, error) UpdateOption(context.Context, *UpdateOptionReq) (*UpdateOptionRsp, error) GetStat(context.Context, *GetStatReq) (*GetStatRsp, error) // contains filtered or unexported methods }
InterfaceServer is the server API for Interface service. All implementations must embed UnimplementedInterfaceServer for forward compatibility
type IsSupportPersistenceReq ¶
type IsSupportPersistenceReq struct {
// contains filtered or unexported fields
}
func (*IsSupportPersistenceReq) Descriptor
deprecated
func (*IsSupportPersistenceReq) Descriptor() ([]byte, []int)
Deprecated: Use IsSupportPersistenceReq.ProtoReflect.Descriptor instead.
func (*IsSupportPersistenceReq) ProtoMessage ¶
func (*IsSupportPersistenceReq) ProtoMessage()
func (*IsSupportPersistenceReq) ProtoReflect ¶
func (x *IsSupportPersistenceReq) ProtoReflect() protoreflect.Message
func (*IsSupportPersistenceReq) Reset ¶
func (x *IsSupportPersistenceReq) Reset()
func (*IsSupportPersistenceReq) String ¶
func (x *IsSupportPersistenceReq) String() string
type IsSupportPersistenceRsp ¶
type IsSupportPersistenceRsp struct { IsSupport bool `protobuf:"varint,1,opt,name=IsSupport,proto3" json:"IsSupport,omitempty"` // contains filtered or unexported fields }
func (*IsSupportPersistenceRsp) Descriptor
deprecated
func (*IsSupportPersistenceRsp) Descriptor() ([]byte, []int)
Deprecated: Use IsSupportPersistenceRsp.ProtoReflect.Descriptor instead.
func (*IsSupportPersistenceRsp) GetIsSupport ¶
func (x *IsSupportPersistenceRsp) GetIsSupport() bool
func (*IsSupportPersistenceRsp) ProtoMessage ¶
func (*IsSupportPersistenceRsp) ProtoMessage()
func (*IsSupportPersistenceRsp) ProtoReflect ¶
func (x *IsSupportPersistenceRsp) ProtoReflect() protoreflect.Message
func (*IsSupportPersistenceRsp) Reset ¶
func (x *IsSupportPersistenceRsp) Reset()
func (*IsSupportPersistenceRsp) String ¶
func (x *IsSupportPersistenceRsp) String() string
type NameReq ¶
type NameReq struct {
// contains filtered or unexported fields
}
func (*NameReq) Descriptor
deprecated
func (*NameReq) ProtoMessage ¶
func (*NameReq) ProtoMessage()
func (*NameReq) ProtoReflect ¶
func (x *NameReq) ProtoReflect() protoreflect.Message
type NameRsp ¶
type NameRsp struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*NameRsp) Descriptor
deprecated
func (*NameRsp) ProtoMessage ¶
func (*NameRsp) ProtoMessage()
func (*NameRsp) ProtoReflect ¶
func (x *NameRsp) ProtoReflect() protoreflect.Message
type Option ¶
type Option struct { SendRateLimit uint64 `protobuf:"varint,1,opt,name=SendRateLimit,proto3" json:"SendRateLimit,omitempty"` RecvRateLimit uint64 `protobuf:"varint,2,opt,name=RecvRateLimit,proto3" json:"RecvRateLimit,omitempty"` // contains filtered or unexported fields }
func (*Option) Descriptor
deprecated
func (*Option) GetRecvRateLimit ¶
func (*Option) GetSendRateLimit ¶
func (*Option) ProtoMessage ¶
func (*Option) ProtoMessage()
func (*Option) ProtoReflect ¶
func (x *Option) ProtoReflect() protoreflect.Message
type SetMetadataReq ¶
type SetMetadataReq struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` Domain string `protobuf:"bytes,2,opt,name=Domain,proto3" json:"Domain,omitempty"` // contains filtered or unexported fields }
func (*SetMetadataReq) Descriptor
deprecated
func (*SetMetadataReq) Descriptor() ([]byte, []int)
Deprecated: Use SetMetadataReq.ProtoReflect.Descriptor instead.
func (*SetMetadataReq) GetDomain ¶
func (x *SetMetadataReq) GetDomain() string
func (*SetMetadataReq) GetIP ¶
func (x *SetMetadataReq) GetIP() string
func (*SetMetadataReq) ProtoMessage ¶
func (*SetMetadataReq) ProtoMessage()
func (*SetMetadataReq) ProtoReflect ¶
func (x *SetMetadataReq) ProtoReflect() protoreflect.Message
func (*SetMetadataReq) Reset ¶
func (x *SetMetadataReq) Reset()
func (*SetMetadataReq) String ¶
func (x *SetMetadataReq) String() string
type SetMetadataRsp ¶
type SetMetadataRsp struct {
// contains filtered or unexported fields
}
func (*SetMetadataRsp) Descriptor
deprecated
func (*SetMetadataRsp) Descriptor() ([]byte, []int)
Deprecated: Use SetMetadataRsp.ProtoReflect.Descriptor instead.
func (*SetMetadataRsp) ProtoMessage ¶
func (*SetMetadataRsp) ProtoMessage()
func (*SetMetadataRsp) ProtoReflect ¶
func (x *SetMetadataRsp) ProtoReflect() protoreflect.Message
func (*SetMetadataRsp) Reset ¶
func (x *SetMetadataRsp) Reset()
func (*SetMetadataRsp) String ¶
func (x *SetMetadataRsp) String() string
type Stat ¶
type Stat struct { SendTraffic uint64 `protobuf:"varint,1,opt,name=SendTraffic,proto3" json:"SendTraffic,omitempty"` RecvTraffic uint64 `protobuf:"varint,2,opt,name=RecvTraffic,proto3" json:"RecvTraffic,omitempty"` // contains filtered or unexported fields }
func (*Stat) Descriptor
deprecated
func (*Stat) GetRecvTraffic ¶
func (*Stat) GetSendTraffic ¶
func (*Stat) ProtoMessage ¶
func (*Stat) ProtoMessage()
func (*Stat) ProtoReflect ¶
func (x *Stat) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type UnimplementedInterfaceServer ¶
type UnimplementedInterfaceServer struct { }
UnimplementedInterfaceServer must be embedded to have forward compatible implementations.
func (UnimplementedInterfaceServer) CreateByConfig ¶
func (UnimplementedInterfaceServer) CreateByConfig(context.Context, *CreateByConfigReq) (*CreateByConfigRsp, error)
func (UnimplementedInterfaceServer) CustomOptionSchema ¶
func (UnimplementedInterfaceServer) CustomOptionSchema(context.Context, *CustomOptionSchemaReq) (*CustomOptionSchemaRsp, error)
func (UnimplementedInterfaceServer) GetStat ¶
func (UnimplementedInterfaceServer) GetStat(context.Context, *GetStatReq) (*GetStatRsp, error)
func (UnimplementedInterfaceServer) IsSupportPersistence ¶
func (UnimplementedInterfaceServer) IsSupportPersistence(context.Context, *IsSupportPersistenceReq) (*IsSupportPersistenceRsp, error)
func (UnimplementedInterfaceServer) SetMetadata ¶
func (UnimplementedInterfaceServer) SetMetadata(context.Context, *SetMetadataReq) (*SetMetadataRsp, error)
func (UnimplementedInterfaceServer) UpdateOption ¶
func (UnimplementedInterfaceServer) UpdateOption(context.Context, *UpdateOptionReq) (*UpdateOptionRsp, error)
type UnsafeInterfaceServer ¶
type UnsafeInterfaceServer interface {
// contains filtered or unexported methods
}
UnsafeInterfaceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InterfaceServer will result in compilation errors.
type UpdateOptionReq ¶
type UpdateOptionReq struct { Index string `protobuf:"bytes,1,opt,name=Index,proto3" json:"Index,omitempty"` Opt *Option `protobuf:"bytes,2,opt,name=Opt,proto3" json:"Opt,omitempty"` // contains filtered or unexported fields }
func (*UpdateOptionReq) Descriptor
deprecated
func (*UpdateOptionReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOptionReq.ProtoReflect.Descriptor instead.
func (*UpdateOptionReq) GetIndex ¶
func (x *UpdateOptionReq) GetIndex() string
func (*UpdateOptionReq) GetOpt ¶
func (x *UpdateOptionReq) GetOpt() *Option
func (*UpdateOptionReq) ProtoMessage ¶
func (*UpdateOptionReq) ProtoMessage()
func (*UpdateOptionReq) ProtoReflect ¶
func (x *UpdateOptionReq) ProtoReflect() protoreflect.Message
func (*UpdateOptionReq) Reset ¶
func (x *UpdateOptionReq) Reset()
func (*UpdateOptionReq) String ¶
func (x *UpdateOptionReq) String() string
type UpdateOptionRsp ¶
type UpdateOptionRsp struct { Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=interface.Code" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` // contains filtered or unexported fields }
func (*UpdateOptionRsp) Descriptor
deprecated
func (*UpdateOptionRsp) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOptionRsp.ProtoReflect.Descriptor instead.
func (*UpdateOptionRsp) GetCode ¶
func (x *UpdateOptionRsp) GetCode() Code
func (*UpdateOptionRsp) GetMsg ¶
func (x *UpdateOptionRsp) GetMsg() string
func (*UpdateOptionRsp) ProtoMessage ¶
func (*UpdateOptionRsp) ProtoMessage()
func (*UpdateOptionRsp) ProtoReflect ¶
func (x *UpdateOptionRsp) ProtoReflect() protoreflect.Message
func (*UpdateOptionRsp) Reset ¶
func (x *UpdateOptionRsp) Reset()
func (*UpdateOptionRsp) String ¶
func (x *UpdateOptionRsp) String() string