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) (SettingsService_ListClient, error)
- func (m *MockSettingsServiceClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
- type MockSettingsServiceClientMockRecorder
- 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 SettingsService_ListServer) error
- func (m *MockSettingsServiceServer) Set(arg0 context.Context, arg1 *SetRequest) (*SetResponse, error)
- type MockSettingsServiceServerMockRecorder
- type MockSettingsService_ListClient
- func (m *MockSettingsService_ListClient) CloseSend() error
- func (m *MockSettingsService_ListClient) Context() context.Context
- func (m *MockSettingsService_ListClient) EXPECT() *MockSettingsService_ListClientMockRecorder
- func (m *MockSettingsService_ListClient) Header() (metadata.MD, error)
- func (m *MockSettingsService_ListClient) Recv() (*ListResponse, error)
- func (m_2 *MockSettingsService_ListClient) RecvMsg(m any) error
- func (m_2 *MockSettingsService_ListClient) SendMsg(m any) error
- func (m *MockSettingsService_ListClient) Trailer() metadata.MD
- type MockSettingsService_ListClientMockRecorder
- func (mr *MockSettingsService_ListClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockSettingsService_ListClientMockRecorder) Context() *gomock.Call
- func (mr *MockSettingsService_ListClientMockRecorder) Header() *gomock.Call
- func (mr *MockSettingsService_ListClientMockRecorder) Recv() *gomock.Call
- func (mr *MockSettingsService_ListClientMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockSettingsService_ListClientMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockSettingsService_ListClientMockRecorder) Trailer() *gomock.Call
- type MockSettingsService_ListServer
- func (m *MockSettingsService_ListServer) Context() context.Context
- func (m *MockSettingsService_ListServer) EXPECT() *MockSettingsService_ListServerMockRecorder
- func (m_2 *MockSettingsService_ListServer) RecvMsg(m any) error
- func (m *MockSettingsService_ListServer) Send(arg0 *ListResponse) error
- func (m *MockSettingsService_ListServer) SendHeader(arg0 metadata.MD) error
- func (m_2 *MockSettingsService_ListServer) SendMsg(m any) error
- func (m *MockSettingsService_ListServer) SetHeader(arg0 metadata.MD) error
- func (m *MockSettingsService_ListServer) SetTrailer(arg0 metadata.MD)
- type MockSettingsService_ListServerMockRecorder
- func (mr *MockSettingsService_ListServerMockRecorder) Context() *gomock.Call
- func (mr *MockSettingsService_ListServerMockRecorder) RecvMsg(m any) *gomock.Call
- func (mr *MockSettingsService_ListServerMockRecorder) Send(arg0 any) *gomock.Call
- func (mr *MockSettingsService_ListServerMockRecorder) SendHeader(arg0 any) *gomock.Call
- func (mr *MockSettingsService_ListServerMockRecorder) SendMsg(m any) *gomock.Call
- func (mr *MockSettingsService_ListServerMockRecorder) SetHeader(arg0 any) *gomock.Call
- func (mr *MockSettingsService_ListServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
- type MockUnsafeSettingsServiceServer
- type MockUnsafeSettingsServiceServerMockRecorder
- 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 UnimplementedSettingsServiceServer
- type UnsafeSettingsServiceServer
Constants ¶
const ( SettingsService_Get_FullMethodName = "/settings.v1.SettingsService/Get" SettingsService_List_FullMethodName = "/settings.v1.SettingsService/List" 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, }, }, 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) (SettingsService_ListClient, error)
List 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.
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 SettingsService_ListServer) error
List 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.
type MockSettingsService_ListClient ¶
type MockSettingsService_ListClient struct {
// contains filtered or unexported fields
}
MockSettingsService_ListClient is a mock of SettingsService_ListClient interface.
func NewMockSettingsService_ListClient ¶
func NewMockSettingsService_ListClient(ctrl *gomock.Controller) *MockSettingsService_ListClient
NewMockSettingsService_ListClient creates a new mock instance.
func (*MockSettingsService_ListClient) CloseSend ¶
func (m *MockSettingsService_ListClient) CloseSend() error
CloseSend mocks base method.
func (*MockSettingsService_ListClient) Context ¶
func (m *MockSettingsService_ListClient) Context() context.Context
Context mocks base method.
func (*MockSettingsService_ListClient) EXPECT ¶
func (m *MockSettingsService_ListClient) EXPECT() *MockSettingsService_ListClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSettingsService_ListClient) Header ¶
func (m *MockSettingsService_ListClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockSettingsService_ListClient) Recv ¶
func (m *MockSettingsService_ListClient) Recv() (*ListResponse, error)
Recv mocks base method.
func (*MockSettingsService_ListClient) RecvMsg ¶
func (m_2 *MockSettingsService_ListClient) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockSettingsService_ListClient) SendMsg ¶
func (m_2 *MockSettingsService_ListClient) SendMsg(m any) error
SendMsg mocks base method.
func (*MockSettingsService_ListClient) Trailer ¶
func (m *MockSettingsService_ListClient) Trailer() metadata.MD
Trailer mocks base method.
type MockSettingsService_ListClientMockRecorder ¶
type MockSettingsService_ListClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSettingsService_ListClientMockRecorder is the mock recorder for MockSettingsService_ListClient.
func (*MockSettingsService_ListClientMockRecorder) CloseSend ¶
func (mr *MockSettingsService_ListClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockSettingsService_ListClientMockRecorder) Context ¶
func (mr *MockSettingsService_ListClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockSettingsService_ListClientMockRecorder) Header ¶
func (mr *MockSettingsService_ListClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockSettingsService_ListClientMockRecorder) Recv ¶
func (mr *MockSettingsService_ListClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockSettingsService_ListClientMockRecorder) RecvMsg ¶
func (mr *MockSettingsService_ListClientMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockSettingsService_ListClientMockRecorder) SendMsg ¶
func (mr *MockSettingsService_ListClientMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockSettingsService_ListClientMockRecorder) Trailer ¶
func (mr *MockSettingsService_ListClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockSettingsService_ListServer ¶
type MockSettingsService_ListServer struct {
// contains filtered or unexported fields
}
MockSettingsService_ListServer is a mock of SettingsService_ListServer interface.
func NewMockSettingsService_ListServer ¶
func NewMockSettingsService_ListServer(ctrl *gomock.Controller) *MockSettingsService_ListServer
NewMockSettingsService_ListServer creates a new mock instance.
func (*MockSettingsService_ListServer) Context ¶
func (m *MockSettingsService_ListServer) Context() context.Context
Context mocks base method.
func (*MockSettingsService_ListServer) EXPECT ¶
func (m *MockSettingsService_ListServer) EXPECT() *MockSettingsService_ListServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSettingsService_ListServer) RecvMsg ¶
func (m_2 *MockSettingsService_ListServer) RecvMsg(m any) error
RecvMsg mocks base method.
func (*MockSettingsService_ListServer) Send ¶
func (m *MockSettingsService_ListServer) Send(arg0 *ListResponse) error
Send mocks base method.
func (*MockSettingsService_ListServer) SendHeader ¶
func (m *MockSettingsService_ListServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockSettingsService_ListServer) SendMsg ¶
func (m_2 *MockSettingsService_ListServer) SendMsg(m any) error
SendMsg mocks base method.
func (*MockSettingsService_ListServer) SetHeader ¶
func (m *MockSettingsService_ListServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockSettingsService_ListServer) SetTrailer ¶
func (m *MockSettingsService_ListServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockSettingsService_ListServerMockRecorder ¶
type MockSettingsService_ListServerMockRecorder struct {
// contains filtered or unexported fields
}
MockSettingsService_ListServerMockRecorder is the mock recorder for MockSettingsService_ListServer.
func (*MockSettingsService_ListServerMockRecorder) Context ¶
func (mr *MockSettingsService_ListServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockSettingsService_ListServerMockRecorder) RecvMsg ¶
func (mr *MockSettingsService_ListServerMockRecorder) RecvMsg(m any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockSettingsService_ListServerMockRecorder) Send ¶
func (mr *MockSettingsService_ListServerMockRecorder) Send(arg0 any) *gomock.Call
Send indicates an expected call of Send.
func (*MockSettingsService_ListServerMockRecorder) SendHeader ¶
func (mr *MockSettingsService_ListServerMockRecorder) SendHeader(arg0 any) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockSettingsService_ListServerMockRecorder) SendMsg ¶
func (mr *MockSettingsService_ListServerMockRecorder) SendMsg(m any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockSettingsService_ListServerMockRecorder) SetHeader ¶
func (mr *MockSettingsService_ListServerMockRecorder) SetHeader(arg0 any) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockSettingsService_ListServerMockRecorder) SetTrailer ¶
func (mr *MockSettingsService_ListServerMockRecorder) SetTrailer(arg0 any) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
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 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) // Pulls all setting values that match some criteria in the name & any other setting properties List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (SettingsService_ListClient, 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) // Pulls all setting values that match some criteria in the name & any other setting properties List(*ListRequest, SettingsService_ListServer) 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 interface { Recv() (*ListResponse, error) grpc.ClientStream }
type SettingsService_ListServer ¶
type SettingsService_ListServer interface { Send(*ListResponse) error grpc.ServerStream }
type UnimplementedSettingsServiceServer ¶
type UnimplementedSettingsServiceServer struct { }
UnimplementedSettingsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSettingsServiceServer) Get ¶
func (UnimplementedSettingsServiceServer) Get(context.Context, *GetRequest) (*GetResponse, 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.