Documentation ¶
Overview ¶
Package settingsv1 is a generated GoMock package.
Index ¶
- Constants
- Variables
- func RegisterSettingsServiceServer(s grpc.ServiceRegistrar, srv SettingsServiceServer)
- func ToContext(ctx context.Context, client *SettingsClient) context.Context
- type GetRequest
- type GetResponse
- type ListRequest
- type ListResponse
- type MockSettingsServiceClient
- func (m *MockSettingsServiceClient) EXPECT() *MockSettingsServiceClientMockRecorder
- func (m *MockSettingsServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
- func (m *MockSettingsServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListResponse], error)
- func (m *MockSettingsServiceClient) Search(ctx context.Context, in *commonv1.SearchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SearchResponse], error)
- func (m *MockSettingsServiceClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
- type MockSettingsServiceClientMockRecorder
- func (mr *MockSettingsServiceClientMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSettingsServiceClientMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSettingsServiceClientMockRecorder) Search(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockSettingsServiceClientMockRecorder) Set(ctx, in any, opts ...any) *gomock.Call
- type MockSettingsServiceServer
- func (m *MockSettingsServiceServer) EXPECT() *MockSettingsServiceServerMockRecorder
- func (m *MockSettingsServiceServer) Get(arg0 context.Context, arg1 *GetRequest) (*GetResponse, error)
- func (m *MockSettingsServiceServer) List(arg0 *ListRequest, arg1 grpc.ServerStreamingServer[ListResponse]) error
- func (m *MockSettingsServiceServer) Search(arg0 *commonv1.SearchRequest, arg1 grpc.ServerStreamingServer[SearchResponse]) error
- func (m *MockSettingsServiceServer) Set(arg0 context.Context, arg1 *SetRequest) (*SetResponse, error)
- type MockSettingsServiceServerMockRecorder
- func (mr *MockSettingsServiceServerMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockSettingsServiceServerMockRecorder) List(arg0, arg1 any) *gomock.Call
- func (mr *MockSettingsServiceServerMockRecorder) Search(arg0, arg1 any) *gomock.Call
- func (mr *MockSettingsServiceServerMockRecorder) Set(arg0, arg1 any) *gomock.Call
- type MockUnsafeSettingsServiceServer
- type MockUnsafeSettingsServiceServerMockRecorder
- type SearchResponse
- type SetRequest
- type SetResponse
- type Setting
- func (*Setting) Descriptor() ([]byte, []int)deprecated
- func (x *Setting) GetLang() string
- func (x *Setting) GetModule() string
- func (x *Setting) GetName() string
- func (x *Setting) GetObject() string
- func (x *Setting) GetObjectId() string
- func (*Setting) ProtoMessage()
- func (x *Setting) ProtoReflect() protoreflect.Message
- func (x *Setting) Reset()
- func (x *Setting) String() string
- type SettingObject
- func (*SettingObject) Descriptor() ([]byte, []int)deprecated
- func (x *SettingObject) GetId() string
- func (x *SettingObject) GetKey() *Setting
- func (x *SettingObject) GetUpdated() string
- func (x *SettingObject) GetValue() string
- func (*SettingObject) ProtoMessage()
- func (x *SettingObject) ProtoReflect() protoreflect.Message
- func (x *SettingObject) Reset()
- func (x *SettingObject) String() string
- type SettingsClient
- type SettingsServiceClient
- type SettingsServiceServer
- type SettingsService_ListClient
- type SettingsService_ListServer
- type SettingsService_SearchClient
- type SettingsService_SearchServer
- type UnimplementedSettingsServiceServer
- func (UnimplementedSettingsServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedSettingsServiceServer) List(*ListRequest, grpc.ServerStreamingServer[ListResponse]) error
- func (UnimplementedSettingsServiceServer) Search(*v1.SearchRequest, grpc.ServerStreamingServer[SearchResponse]) error
- func (UnimplementedSettingsServiceServer) Set(context.Context, *SetRequest) (*SetResponse, error)
- type UnsafeSettingsServiceServer
Constants ¶
const ( SettingsService_Get_FullMethodName = "/settings.v1.SettingsService/Get" SettingsService_List_FullMethodName = "/settings.v1.SettingsService/List" SettingsService_Search_FullMethodName = "/settings.v1.SettingsService/Search" SettingsService_Set_FullMethodName = "/settings.v1.SettingsService/Set" )
Variables ¶
var File_settings_v1_settings_proto protoreflect.FileDescriptor
var SettingsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "settings.v1.SettingsService", HandlerType: (*SettingsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _SettingsService_Get_Handler, }, { MethodName: "Set", Handler: _SettingsService_Set_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "List", Handler: _SettingsService_List_Handler, ServerStreams: true, }, { StreamName: "Search", Handler: _SettingsService_Search_Handler, ServerStreams: true, }, }, Metadata: "settings/v1/settings.proto", }
SettingsService_ServiceDesc is the grpc.ServiceDesc for SettingsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSettingsServiceServer ¶
func RegisterSettingsServiceServer(s grpc.ServiceRegistrar, srv SettingsServiceServer)
Types ¶
type GetRequest ¶
type GetRequest struct { Key *Setting `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetKey ¶
func (x *GetRequest) GetKey() *Setting
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Data *SettingObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetData ¶
func (x *GetResponse) GetData() *SettingObject
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type ListRequest ¶
type ListRequest struct { Key *Setting `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetKey ¶
func (x *ListRequest) GetKey() *Setting
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Data []*SettingObject `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetData ¶
func (x *ListResponse) GetData() []*SettingObject
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type MockSettingsServiceClient ¶
type MockSettingsServiceClient struct {
// contains filtered or unexported fields
}
MockSettingsServiceClient is a mock of SettingsServiceClient interface.
func NewMockSettingsServiceClient ¶
func NewMockSettingsServiceClient(ctrl *gomock.Controller) *MockSettingsServiceClient
NewMockSettingsServiceClient creates a new mock instance.
func (*MockSettingsServiceClient) EXPECT ¶
func (m *MockSettingsServiceClient) EXPECT() *MockSettingsServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSettingsServiceClient) Get ¶
func (m *MockSettingsServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
Get mocks base method.
func (*MockSettingsServiceClient) List ¶
func (m *MockSettingsServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListResponse], error)
List mocks base method.
func (*MockSettingsServiceClient) Search ¶ added in v1.25.0
func (m *MockSettingsServiceClient) Search(ctx context.Context, in *commonv1.SearchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SearchResponse], error)
Search mocks base method.
func (*MockSettingsServiceClient) Set ¶
func (m *MockSettingsServiceClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
Set mocks base method.
type MockSettingsServiceClientMockRecorder ¶
type MockSettingsServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSettingsServiceClientMockRecorder is the mock recorder for MockSettingsServiceClient.
func (*MockSettingsServiceClientMockRecorder) Get ¶
func (mr *MockSettingsServiceClientMockRecorder) Get(ctx, in any, opts ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockSettingsServiceClientMockRecorder) List ¶
func (mr *MockSettingsServiceClientMockRecorder) List(ctx, in any, opts ...any) *gomock.Call
List indicates an expected call of List.
type MockSettingsServiceServer ¶
type MockSettingsServiceServer struct {
// contains filtered or unexported fields
}
MockSettingsServiceServer is a mock of SettingsServiceServer interface.
func NewMockSettingsServiceServer ¶
func NewMockSettingsServiceServer(ctrl *gomock.Controller) *MockSettingsServiceServer
NewMockSettingsServiceServer creates a new mock instance.
func (*MockSettingsServiceServer) EXPECT ¶
func (m *MockSettingsServiceServer) EXPECT() *MockSettingsServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSettingsServiceServer) Get ¶
func (m *MockSettingsServiceServer) Get(arg0 context.Context, arg1 *GetRequest) (*GetResponse, error)
Get mocks base method.
func (*MockSettingsServiceServer) List ¶
func (m *MockSettingsServiceServer) List(arg0 *ListRequest, arg1 grpc.ServerStreamingServer[ListResponse]) error
List mocks base method.
func (*MockSettingsServiceServer) Search ¶ added in v1.25.0
func (m *MockSettingsServiceServer) Search(arg0 *commonv1.SearchRequest, arg1 grpc.ServerStreamingServer[SearchResponse]) error
Search mocks base method.
func (*MockSettingsServiceServer) Set ¶
func (m *MockSettingsServiceServer) Set(arg0 context.Context, arg1 *SetRequest) (*SetResponse, error)
Set mocks base method.
type MockSettingsServiceServerMockRecorder ¶
type MockSettingsServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockSettingsServiceServerMockRecorder is the mock recorder for MockSettingsServiceServer.
func (*MockSettingsServiceServerMockRecorder) Get ¶
func (mr *MockSettingsServiceServerMockRecorder) Get(arg0, arg1 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockSettingsServiceServerMockRecorder) List ¶
func (mr *MockSettingsServiceServerMockRecorder) List(arg0, arg1 any) *gomock.Call
List indicates an expected call of List.
type MockUnsafeSettingsServiceServer ¶
type MockUnsafeSettingsServiceServer struct {
// contains filtered or unexported fields
}
MockUnsafeSettingsServiceServer is a mock of UnsafeSettingsServiceServer interface.
func NewMockUnsafeSettingsServiceServer ¶
func NewMockUnsafeSettingsServiceServer(ctrl *gomock.Controller) *MockUnsafeSettingsServiceServer
NewMockUnsafeSettingsServiceServer creates a new mock instance.
func (*MockUnsafeSettingsServiceServer) EXPECT ¶
func (m *MockUnsafeSettingsServiceServer) EXPECT() *MockUnsafeSettingsServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeSettingsServiceServerMockRecorder ¶
type MockUnsafeSettingsServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeSettingsServiceServerMockRecorder is the mock recorder for MockUnsafeSettingsServiceServer.
type SearchResponse ¶ added in v1.25.0
type SearchResponse struct { Data []*SettingObject `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
added in
v1.25.0
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetData ¶ added in v1.25.0
func (x *SearchResponse) GetData() []*SettingObject
func (*SearchResponse) ProtoMessage ¶ added in v1.25.0
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶ added in v1.25.0
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶ added in v1.25.0
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶ added in v1.25.0
func (x *SearchResponse) String() string
type SetRequest ¶
type SetRequest struct { Key *Setting `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SetRequest) Descriptor
deprecated
func (*SetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRequest.ProtoReflect.Descriptor instead.
func (*SetRequest) GetKey ¶
func (x *SetRequest) GetKey() *Setting
func (*SetRequest) GetValue ¶
func (x *SetRequest) GetValue() string
func (*SetRequest) ProtoMessage ¶
func (*SetRequest) ProtoMessage()
func (*SetRequest) ProtoReflect ¶
func (x *SetRequest) ProtoReflect() protoreflect.Message
func (*SetRequest) Reset ¶
func (x *SetRequest) Reset()
func (*SetRequest) String ¶
func (x *SetRequest) String() string
type SetResponse ¶
type SetResponse struct { Data *SettingObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SetResponse) Descriptor
deprecated
func (*SetResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetResponse.ProtoReflect.Descriptor instead.
func (*SetResponse) GetData ¶
func (x *SetResponse) GetData() *SettingObject
func (*SetResponse) ProtoMessage ¶
func (*SetResponse) ProtoMessage()
func (*SetResponse) ProtoReflect ¶
func (x *SetResponse) ProtoReflect() protoreflect.Message
func (*SetResponse) Reset ¶
func (x *SetResponse) Reset()
func (*SetResponse) String ¶
func (x *SetResponse) String() string
type Setting ¶
type Setting struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` ObjectId string `protobuf:"bytes,3,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` Lang string `protobuf:"bytes,4,opt,name=lang,proto3" json:"lang,omitempty"` Module string `protobuf:"bytes,5,opt,name=module,proto3" json:"module,omitempty"` // contains filtered or unexported fields }
func (*Setting) Descriptor
deprecated
func (*Setting) GetObjectId ¶
func (*Setting) ProtoMessage ¶
func (*Setting) ProtoMessage()
func (*Setting) ProtoReflect ¶
func (x *Setting) ProtoReflect() protoreflect.Message
type SettingObject ¶
type SettingObject struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Key *Setting `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Updated string `protobuf:"bytes,4,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
func (*SettingObject) Descriptor
deprecated
func (*SettingObject) Descriptor() ([]byte, []int)
Deprecated: Use SettingObject.ProtoReflect.Descriptor instead.
func (*SettingObject) GetId ¶
func (x *SettingObject) GetId() string
func (*SettingObject) GetKey ¶
func (x *SettingObject) GetKey() *Setting
func (*SettingObject) GetUpdated ¶
func (x *SettingObject) GetUpdated() string
func (*SettingObject) GetValue ¶
func (x *SettingObject) GetValue() string
func (*SettingObject) ProtoMessage ¶
func (*SettingObject) ProtoMessage()
func (*SettingObject) ProtoReflect ¶
func (x *SettingObject) ProtoReflect() protoreflect.Message
func (*SettingObject) Reset ¶
func (x *SettingObject) Reset()
func (*SettingObject) String ¶
func (x *SettingObject) String() string
type SettingsClient ¶
type SettingsClient struct { *common.GrpcClientBase // The gRPC API Client. Client SettingsServiceClient }
SettingsClient is a Client for interacting with the notification service API.
Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
func FromContext ¶
func FromContext(ctx context.Context) *SettingsClient
func Init ¶ added in v1.9.1
func Init(cBase *common.GrpcClientBase, service SettingsServiceClient) *SettingsClient
func NewsettingsClient ¶
func NewsettingsClient(ctx context.Context, opts ...common.ClientOption) (*SettingsClient, error)
NewsettingsClient creates a new notification Client.
The service that an application uses to send and access received messages
type SettingsServiceClient ¶
type SettingsServiceClient interface { // Gets a single setting and its stored value Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListResponse], error) Search(ctx context.Context, in *v1.SearchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SearchResponse], error) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) }
SettingsServiceClient is the client API for SettingsService 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 NewSettingsServiceClient ¶
func NewSettingsServiceClient(cc grpc.ClientConnInterface) SettingsServiceClient
type SettingsServiceServer ¶
type SettingsServiceServer interface { // Gets a single setting and its stored value Get(context.Context, *GetRequest) (*GetResponse, error) List(*ListRequest, grpc.ServerStreamingServer[ListResponse]) error Search(*v1.SearchRequest, grpc.ServerStreamingServer[SearchResponse]) error Set(context.Context, *SetRequest) (*SetResponse, error) // contains filtered or unexported methods }
SettingsServiceServer is the server API for SettingsService service. All implementations must embed UnimplementedSettingsServiceServer for forward compatibility.
type SettingsService_ListClient ¶
type SettingsService_ListClient = grpc.ServerStreamingClient[ListResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SettingsService_ListServer ¶
type SettingsService_ListServer = grpc.ServerStreamingServer[ListResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SettingsService_SearchClient ¶ added in v1.25.0
type SettingsService_SearchClient = grpc.ServerStreamingClient[SearchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SettingsService_SearchServer ¶ added in v1.25.0
type SettingsService_SearchServer = grpc.ServerStreamingServer[SearchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedSettingsServiceServer ¶
type UnimplementedSettingsServiceServer struct{}
UnimplementedSettingsServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSettingsServiceServer) Get ¶
func (UnimplementedSettingsServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedSettingsServiceServer) Search ¶ added in v1.25.0
func (UnimplementedSettingsServiceServer) Search(*v1.SearchRequest, grpc.ServerStreamingServer[SearchResponse]) error
func (UnimplementedSettingsServiceServer) Set ¶
func (UnimplementedSettingsServiceServer) Set(context.Context, *SetRequest) (*SetResponse, error)
type UnsafeSettingsServiceServer ¶
type UnsafeSettingsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSettingsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SettingsServiceServer will result in compilation errors.