settingsv1

package
v1.25.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package settingsv1 is a generated GoMock package.

Index

Constants

View Source
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

View Source
var File_settings_v1_settings_proto protoreflect.FileDescriptor
View Source
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)

func ToContext

func ToContext(ctx context.Context, client *SettingsClient) context.Context

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSettingsServiceClient) Get

Get mocks base method.

func (*MockSettingsServiceClient) List

List mocks base method.

func (*MockSettingsServiceClient) Search added in v1.25.0

Search mocks base method.

func (*MockSettingsServiceClient) Set

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.

func (*MockSettingsServiceClientMockRecorder) Search added in v1.25.0

func (mr *MockSettingsServiceClientMockRecorder) Search(ctx, in any, opts ...any) *gomock.Call

Search indicates an expected call of Search.

func (*MockSettingsServiceClientMockRecorder) Set

func (mr *MockSettingsServiceClientMockRecorder) Set(ctx, in any, opts ...any) *gomock.Call

Set indicates an expected call of Set.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSettingsServiceServer) Get

Get mocks base method.

func (*MockSettingsServiceServer) List

List mocks base method.

func (*MockSettingsServiceServer) Search added in v1.25.0

Search mocks base method.

func (*MockSettingsServiceServer) Set

Set mocks base method.

type MockSettingsServiceServerMockRecorder

type MockSettingsServiceServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockSettingsServiceServerMockRecorder is the mock recorder for MockSettingsServiceServer.

func (*MockSettingsServiceServerMockRecorder) Get

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.

func (*MockSettingsServiceServerMockRecorder) Search added in v1.25.0

func (mr *MockSettingsServiceServerMockRecorder) Search(arg0, arg1 any) *gomock.Call

Search indicates an expected call of Search.

func (*MockSettingsServiceServerMockRecorder) Set

Set indicates an expected call of Set.

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Setting.ProtoReflect.Descriptor instead.

func (*Setting) GetLang

func (x *Setting) GetLang() string

func (*Setting) GetModule

func (x *Setting) GetModule() string

func (*Setting) GetName

func (x *Setting) GetName() string

func (*Setting) GetObject

func (x *Setting) GetObject() string

func (*Setting) GetObjectId

func (x *Setting) GetObjectId() string

func (*Setting) ProtoMessage

func (*Setting) ProtoMessage()

func (*Setting) ProtoReflect

func (x *Setting) ProtoReflect() protoreflect.Message

func (*Setting) Reset

func (x *Setting) Reset()

func (*Setting) String

func (x *Setting) String() string

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 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.

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) List

func (UnimplementedSettingsServiceServer) Search added in v1.25.0

func (UnimplementedSettingsServiceServer) Set

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.

Jump to

Keyboard shortcuts

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