settingsv1

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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_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,
		},
	},
	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) 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) 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) 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) Set

Set indicates an expected call of Set.

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

Context mocks base method.

func (*MockSettingsService_ListClient) EXPECT

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

func (*MockSettingsService_ListClient) Header

Header mocks base method.

func (*MockSettingsService_ListClient) Recv

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

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

CloseSend indicates an expected call of CloseSend.

func (*MockSettingsService_ListClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockSettingsService_ListClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockSettingsService_ListClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockSettingsService_ListClientMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockSettingsService_ListClientMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockSettingsService_ListClientMockRecorder) Trailer

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

Context mocks base method.

func (*MockSettingsService_ListServer) EXPECT

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

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

Context indicates an expected call of Context.

func (*MockSettingsService_ListServerMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockSettingsService_ListServerMockRecorder) Send

Send indicates an expected call of Send.

func (*MockSettingsService_ListServerMockRecorder) SendHeader

SendHeader indicates an expected call of SendHeader.

func (*MockSettingsService_ListServerMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockSettingsService_ListServerMockRecorder) SetHeader

SetHeader indicates an expected call of SetHeader.

func (*MockSettingsService_ListServerMockRecorder) SetTrailer

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

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

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

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