Versions in this module Expand all Collapse all v1 v1.0.3 Sep 26, 2022 Changes in this version + var Code_name = map[int32]string + var Code_value = map[string]int32 + var ConfigType_name = map[int32]string + var ConfigType_value = map[string]int32 + var File_proto_simple_interface_interface_proto protoreflect.FileDescriptor + var Interface_ServiceDesc = grpc.ServiceDesc + var Type_name = map[int32]string + var Type_value = map[string]int32 + func RegisterInterfaceServer(s grpc.ServiceRegistrar, srv InterfaceServer) + type Code int32 + const Code_Fail + const Code_NotFound + const Code_OK + func (Code) Descriptor() protoreflect.EnumDescriptor + func (Code) EnumDescriptor() ([]byte, []int) + func (Code) Type() protoreflect.EnumType + func (x Code) Enum() *Code + func (x Code) Number() protoreflect.EnumNumber + func (x Code) String() string + type Config struct + Config []byte + ConfigType ConfigType + Name string + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (x *Config) GetConfig() []byte + func (x *Config) GetConfigType() ConfigType + func (x *Config) GetName() string + func (x *Config) ProtoReflect() protoreflect.Message + func (x *Config) Reset() + func (x *Config) String() string + type ConfigType int32 + const ConfigType_JSON + const ConfigType_TEXT + const ConfigType_URL + const ConfigType_YAML + func (ConfigType) Descriptor() protoreflect.EnumDescriptor + func (ConfigType) EnumDescriptor() ([]byte, []int) + func (ConfigType) Type() protoreflect.EnumType + func (x ConfigType) Enum() *ConfigType + func (x ConfigType) Number() protoreflect.EnumNumber + func (x ConfigType) String() string + type CreateByConfigReq struct + Config *Config + CustomOption string + Index string + Opt *Option + func (*CreateByConfigReq) Descriptor() ([]byte, []int) + func (*CreateByConfigReq) ProtoMessage() + func (x *CreateByConfigReq) GetConfig() *Config + func (x *CreateByConfigReq) GetCustomOption() string + func (x *CreateByConfigReq) GetIndex() string + func (x *CreateByConfigReq) GetOpt() *Option + func (x *CreateByConfigReq) ProtoReflect() protoreflect.Message + func (x *CreateByConfigReq) Reset() + func (x *CreateByConfigReq) String() string + type CreateByConfigRsp struct + Code Code + Msg string + func (*CreateByConfigRsp) Descriptor() ([]byte, []int) + func (*CreateByConfigRsp) ProtoMessage() + func (x *CreateByConfigRsp) GetCode() Code + func (x *CreateByConfigRsp) GetMsg() string + func (x *CreateByConfigRsp) ProtoReflect() protoreflect.Message + func (x *CreateByConfigRsp) Reset() + func (x *CreateByConfigRsp) String() string + type CreateReq struct + ConfigType ConfigType + CustomOption string + Opt *Option + func (*CreateReq) Descriptor() ([]byte, []int) + func (*CreateReq) ProtoMessage() + func (x *CreateReq) GetConfigType() ConfigType + func (x *CreateReq) GetCustomOption() string + func (x *CreateReq) GetOpt() *Option + func (x *CreateReq) ProtoReflect() protoreflect.Message + func (x *CreateReq) Reset() + func (x *CreateReq) String() string + type CreateRsp struct + Code Code + Config *Config + Index string + Msg string + func (*CreateRsp) Descriptor() ([]byte, []int) + func (*CreateRsp) ProtoMessage() + func (x *CreateRsp) GetCode() Code + func (x *CreateRsp) GetConfig() *Config + func (x *CreateRsp) GetIndex() string + func (x *CreateRsp) GetMsg() string + func (x *CreateRsp) ProtoReflect() protoreflect.Message + func (x *CreateRsp) Reset() + func (x *CreateRsp) String() string + type CustomOptionSchemaReq struct + func (*CustomOptionSchemaReq) Descriptor() ([]byte, []int) + func (*CustomOptionSchemaReq) ProtoMessage() + func (x *CustomOptionSchemaReq) ProtoReflect() protoreflect.Message + func (x *CustomOptionSchemaReq) Reset() + func (x *CustomOptionSchemaReq) String() string + type CustomOptionSchemaRsp struct + Fields []*Field + func (*CustomOptionSchemaRsp) Descriptor() ([]byte, []int) + func (*CustomOptionSchemaRsp) ProtoMessage() + func (x *CustomOptionSchemaRsp) GetFields() []*Field + func (x *CustomOptionSchemaRsp) ProtoReflect() protoreflect.Message + func (x *CustomOptionSchemaRsp) Reset() + func (x *CustomOptionSchemaRsp) String() string + type DeleteReq struct + Index string + func (*DeleteReq) Descriptor() ([]byte, []int) + func (*DeleteReq) ProtoMessage() + func (x *DeleteReq) GetIndex() string + func (x *DeleteReq) ProtoReflect() protoreflect.Message + func (x *DeleteReq) Reset() + func (x *DeleteReq) String() string + type DeleteRsp struct + Code Code + Msg string + func (*DeleteRsp) Descriptor() ([]byte, []int) + func (*DeleteRsp) ProtoMessage() + func (x *DeleteRsp) GetCode() Code + func (x *DeleteRsp) GetMsg() string + func (x *DeleteRsp) ProtoReflect() protoreflect.Message + func (x *DeleteRsp) Reset() + func (x *DeleteRsp) String() string + type Field struct + Name string + Optional []string + Type Type + func (*Field) Descriptor() ([]byte, []int) + func (*Field) ProtoMessage() + func (x *Field) GetName() string + func (x *Field) GetOptional() []string + func (x *Field) GetType() Type + func (x *Field) ProtoReflect() protoreflect.Message + func (x *Field) Reset() + func (x *Field) String() string + type GetAllReq struct + ConfigType ConfigType + func (*GetAllReq) Descriptor() ([]byte, []int) + func (*GetAllReq) ProtoMessage() + func (x *GetAllReq) GetConfigType() ConfigType + func (x *GetAllReq) ProtoReflect() protoreflect.Message + func (x *GetAllReq) Reset() + func (x *GetAllReq) String() string + type GetAllRsp struct + All map[string]*Config + Code Code + Msg string + func (*GetAllRsp) Descriptor() ([]byte, []int) + func (*GetAllRsp) ProtoMessage() + func (x *GetAllRsp) GetAll() map[string]*Config + func (x *GetAllRsp) GetCode() Code + func (x *GetAllRsp) GetMsg() string + func (x *GetAllRsp) ProtoReflect() protoreflect.Message + func (x *GetAllRsp) Reset() + func (x *GetAllRsp) String() string + type GetReq struct + ConfigType ConfigType + Index string + func (*GetReq) Descriptor() ([]byte, []int) + func (*GetReq) ProtoMessage() + func (x *GetReq) GetConfigType() ConfigType + func (x *GetReq) GetIndex() string + func (x *GetReq) ProtoReflect() protoreflect.Message + func (x *GetReq) Reset() + func (x *GetReq) String() string + type GetRsp struct + Code Code + Config *Config + Index string + Msg string + func (*GetRsp) Descriptor() ([]byte, []int) + func (*GetRsp) ProtoMessage() + func (x *GetRsp) GetCode() Code + func (x *GetRsp) GetConfig() *Config + func (x *GetRsp) GetIndex() string + func (x *GetRsp) GetMsg() string + func (x *GetRsp) ProtoReflect() protoreflect.Message + func (x *GetRsp) Reset() + func (x *GetRsp) String() string + type GetStatReq struct + Index string + func (*GetStatReq) Descriptor() ([]byte, []int) + func (*GetStatReq) ProtoMessage() + func (x *GetStatReq) GetIndex() string + func (x *GetStatReq) ProtoReflect() protoreflect.Message + func (x *GetStatReq) Reset() + func (x *GetStatReq) String() string + type GetStatRsp struct + Code Code + Msg string + Stat *Stat + func (*GetStatRsp) Descriptor() ([]byte, []int) + func (*GetStatRsp) ProtoMessage() + func (x *GetStatRsp) GetCode() Code + func (x *GetStatRsp) GetMsg() string + func (x *GetStatRsp) GetStat() *Stat + func (x *GetStatRsp) ProtoReflect() protoreflect.Message + func (x *GetStatRsp) Reset() + func (x *GetStatRsp) String() string + type InterfaceClient interface + Create func(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateRsp, error) + CreateByConfig func(ctx context.Context, in *CreateByConfigReq, opts ...grpc.CallOption) (*CreateByConfigRsp, error) + CustomOptionSchema func(ctx context.Context, in *CustomOptionSchemaReq, opts ...grpc.CallOption) (*CustomOptionSchemaRsp, error) + Delete func(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteRsp, error) + Get func(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetRsp, error) + GetAll func(ctx context.Context, in *GetAllReq, opts ...grpc.CallOption) (*GetAllRsp, error) + GetStat func(ctx context.Context, in *GetStatReq, opts ...grpc.CallOption) (*GetStatRsp, error) + IsSupportPersistence func(ctx context.Context, in *IsSupportPersistenceReq, opts ...grpc.CallOption) (*IsSupportPersistenceRsp, error) + Name func(ctx context.Context, in *NameReq, opts ...grpc.CallOption) (*NameRsp, error) + SetMetadata func(ctx context.Context, in *SetMetadataReq, opts ...grpc.CallOption) (*SetMetadataRsp, error) + UpdateOption func(ctx context.Context, in *UpdateOptionReq, opts ...grpc.CallOption) (*UpdateOptionRsp, error) + func NewInterfaceClient(cc grpc.ClientConnInterface) InterfaceClient + type InterfaceServer interface + Create func(context.Context, *CreateReq) (*CreateRsp, error) + CreateByConfig func(context.Context, *CreateByConfigReq) (*CreateByConfigRsp, error) + CustomOptionSchema func(context.Context, *CustomOptionSchemaReq) (*CustomOptionSchemaRsp, error) + Delete func(context.Context, *DeleteReq) (*DeleteRsp, error) + Get func(context.Context, *GetReq) (*GetRsp, error) + GetAll func(context.Context, *GetAllReq) (*GetAllRsp, error) + GetStat func(context.Context, *GetStatReq) (*GetStatRsp, error) + IsSupportPersistence func(context.Context, *IsSupportPersistenceReq) (*IsSupportPersistenceRsp, error) + Name func(context.Context, *NameReq) (*NameRsp, error) + SetMetadata func(context.Context, *SetMetadataReq) (*SetMetadataRsp, error) + UpdateOption func(context.Context, *UpdateOptionReq) (*UpdateOptionRsp, error) + type IsSupportPersistenceReq struct + func (*IsSupportPersistenceReq) Descriptor() ([]byte, []int) + func (*IsSupportPersistenceReq) ProtoMessage() + func (x *IsSupportPersistenceReq) ProtoReflect() protoreflect.Message + func (x *IsSupportPersistenceReq) Reset() + func (x *IsSupportPersistenceReq) String() string + type IsSupportPersistenceRsp struct + IsSupport bool + func (*IsSupportPersistenceRsp) Descriptor() ([]byte, []int) + func (*IsSupportPersistenceRsp) ProtoMessage() + func (x *IsSupportPersistenceRsp) GetIsSupport() bool + func (x *IsSupportPersistenceRsp) ProtoReflect() protoreflect.Message + func (x *IsSupportPersistenceRsp) Reset() + func (x *IsSupportPersistenceRsp) String() string + type NameReq struct + func (*NameReq) Descriptor() ([]byte, []int) + func (*NameReq) ProtoMessage() + func (x *NameReq) ProtoReflect() protoreflect.Message + func (x *NameReq) Reset() + func (x *NameReq) String() string + type NameRsp struct + Name string + func (*NameRsp) Descriptor() ([]byte, []int) + func (*NameRsp) ProtoMessage() + func (x *NameRsp) GetName() string + func (x *NameRsp) ProtoReflect() protoreflect.Message + func (x *NameRsp) Reset() + func (x *NameRsp) String() string + type Option struct + RecvRateLimit uint64 + SendRateLimit uint64 + func (*Option) Descriptor() ([]byte, []int) + func (*Option) ProtoMessage() + func (x *Option) GetRecvRateLimit() uint64 + func (x *Option) GetSendRateLimit() uint64 + func (x *Option) ProtoReflect() protoreflect.Message + func (x *Option) Reset() + func (x *Option) String() string + type SetMetadataReq struct + Domain string + IP string + func (*SetMetadataReq) Descriptor() ([]byte, []int) + func (*SetMetadataReq) ProtoMessage() + func (x *SetMetadataReq) GetDomain() string + func (x *SetMetadataReq) GetIP() string + func (x *SetMetadataReq) ProtoReflect() protoreflect.Message + func (x *SetMetadataReq) Reset() + func (x *SetMetadataReq) String() string + type SetMetadataRsp struct + func (*SetMetadataRsp) Descriptor() ([]byte, []int) + func (*SetMetadataRsp) ProtoMessage() + func (x *SetMetadataRsp) ProtoReflect() protoreflect.Message + func (x *SetMetadataRsp) Reset() + func (x *SetMetadataRsp) String() string + type Stat struct + RecvTraffic uint64 + SendTraffic uint64 + func (*Stat) Descriptor() ([]byte, []int) + func (*Stat) ProtoMessage() + func (x *Stat) GetRecvTraffic() uint64 + func (x *Stat) GetSendTraffic() uint64 + func (x *Stat) ProtoReflect() protoreflect.Message + func (x *Stat) Reset() + func (x *Stat) String() string + type Type int32 + const Type_Bool + const Type_Number + const Type_String + const Type_StringArray + func (Type) Descriptor() protoreflect.EnumDescriptor + func (Type) EnumDescriptor() ([]byte, []int) + func (Type) Type() protoreflect.EnumType + func (x Type) Enum() *Type + func (x Type) Number() protoreflect.EnumNumber + func (x Type) String() string + type UnimplementedInterfaceServer struct + 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 interface + type UpdateOptionReq struct + Index string + Opt *Option + func (*UpdateOptionReq) Descriptor() ([]byte, []int) + func (*UpdateOptionReq) ProtoMessage() + func (x *UpdateOptionReq) GetIndex() string + func (x *UpdateOptionReq) GetOpt() *Option + func (x *UpdateOptionReq) ProtoReflect() protoreflect.Message + func (x *UpdateOptionReq) Reset() + func (x *UpdateOptionReq) String() string + type UpdateOptionRsp struct + Code Code + Msg string + func (*UpdateOptionRsp) Descriptor() ([]byte, []int) + func (*UpdateOptionRsp) ProtoMessage() + func (x *UpdateOptionRsp) GetCode() Code + func (x *UpdateOptionRsp) GetMsg() string + func (x *UpdateOptionRsp) ProtoReflect() protoreflect.Message + func (x *UpdateOptionRsp) Reset() + func (x *UpdateOptionRsp) String() string