v1

package
v0.3.0-alpha15 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DynamicConfigService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.proto.config.v1.DynamicConfigService",
	HandlerType: (*DynamicConfigServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _DynamicConfigService_Get_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _DynamicConfigService_Update_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/proto/config/v1/config.proto",
}

DynamicConfigService_ServiceDesc is the grpc.ServiceDesc for DynamicConfigService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_proto_config_v1_config_proto protoreflect.FileDescriptor
View Source
var StaticConfigService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.proto.config.v1.StaticConfigService",
	HandlerType: (*StaticConfigServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _StaticConfigService_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/proto/config/v1/config.proto",
}

StaticConfigService_ServiceDesc is the grpc.ServiceDesc for StaticConfigService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterDynamicConfigServiceServer

func RegisterDynamicConfigServiceServer(s grpc.ServiceRegistrar, srv DynamicConfigServiceServer)

func RegisterStaticConfigServiceServer

func RegisterStaticConfigServiceServer(s grpc.ServiceRegistrar, srv StaticConfigServiceServer)

Types

type DynamicConfig

type DynamicConfig struct {
	RoundDuration uint64                `protobuf:"varint,2,opt,name=round_duration,json=roundDuration,proto3" json:"round_duration,omitempty"`
	Enabled       *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*DynamicConfig) Descriptor deprecated

func (*DynamicConfig) Descriptor() ([]byte, []int)

Deprecated: Use DynamicConfig.ProtoReflect.Descriptor instead.

func (*DynamicConfig) GetEnabled

func (x *DynamicConfig) GetEnabled() *wrapperspb.BoolValue

func (*DynamicConfig) GetRoundDuration

func (x *DynamicConfig) GetRoundDuration() uint64

func (*DynamicConfig) ProtoMessage

func (*DynamicConfig) ProtoMessage()

func (*DynamicConfig) ProtoReflect

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

func (*DynamicConfig) Reset

func (x *DynamicConfig) Reset()

func (*DynamicConfig) String

func (x *DynamicConfig) String() string

type DynamicConfigServiceClient

type DynamicConfigServiceClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
}

DynamicConfigServiceClient is the client API for DynamicConfigService 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 DynamicConfigServiceServer

type DynamicConfigServiceServer interface {
	Get(context.Context, *GetRequest) (*GetResponse, error)
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	// contains filtered or unexported methods
}

DynamicConfigServiceServer is the server API for DynamicConfigService service. All implementations must embed UnimplementedDynamicConfigServiceServer for forward compatibility

type GetRequest

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

func (*GetRequest) Descriptor deprecated

func (*GetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

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 {
	DynamicConfig *DynamicConfig `protobuf:"bytes,1,opt,name=dynamic_config,json=dynamicConfig,proto3" json:"dynamic_config,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

func (*GetResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetDynamicConfig

func (x *GetResponse) GetDynamicConfig() *DynamicConfig

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 GetStaticConfigRequest

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

func (*GetStaticConfigRequest) Descriptor deprecated

func (*GetStaticConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetStaticConfigRequest.ProtoReflect.Descriptor instead.

func (*GetStaticConfigRequest) ProtoMessage

func (*GetStaticConfigRequest) ProtoMessage()

func (*GetStaticConfigRequest) ProtoReflect

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

func (*GetStaticConfigRequest) Reset

func (x *GetStaticConfigRequest) Reset()

func (*GetStaticConfigRequest) String

func (x *GetStaticConfigRequest) String() string

type GetStaticConfigResponse

type GetStaticConfigResponse struct {
	StaticConfig string `protobuf:"bytes,1,opt,name=static_config,json=staticConfig,proto3" json:"static_config,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStaticConfigResponse) Descriptor deprecated

func (*GetStaticConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetStaticConfigResponse.ProtoReflect.Descriptor instead.

func (*GetStaticConfigResponse) GetStaticConfig

func (x *GetStaticConfigResponse) GetStaticConfig() string

func (*GetStaticConfigResponse) ProtoMessage

func (*GetStaticConfigResponse) ProtoMessage()

func (*GetStaticConfigResponse) ProtoReflect

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

func (*GetStaticConfigResponse) Reset

func (x *GetStaticConfigResponse) Reset()

func (*GetStaticConfigResponse) String

func (x *GetStaticConfigResponse) String() string

type StaticConfigServiceClient

type StaticConfigServiceClient interface {
	Get(ctx context.Context, in *GetStaticConfigRequest, opts ...grpc.CallOption) (*GetStaticConfigResponse, error)
}

StaticConfigServiceClient is the client API for StaticConfigService 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 StaticConfigServiceServer

type StaticConfigServiceServer interface {
	Get(context.Context, *GetStaticConfigRequest) (*GetStaticConfigResponse, error)
	// contains filtered or unexported methods
}

StaticConfigServiceServer is the server API for StaticConfigService service. All implementations must embed UnimplementedStaticConfigServiceServer for forward compatibility

type UnimplementedDynamicConfigServiceServer

type UnimplementedDynamicConfigServiceServer struct {
}

UnimplementedDynamicConfigServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDynamicConfigServiceServer) Get

func (UnimplementedDynamicConfigServiceServer) Update

type UnimplementedStaticConfigServiceServer

type UnimplementedStaticConfigServiceServer struct {
}

UnimplementedStaticConfigServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStaticConfigServiceServer) Get

type UnsafeDynamicConfigServiceServer

type UnsafeDynamicConfigServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDynamicConfigServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DynamicConfigServiceServer will result in compilation errors.

type UnsafeStaticConfigServiceServer

type UnsafeStaticConfigServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeStaticConfigServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StaticConfigServiceServer will result in compilation errors.

type UpdateRequest

type UpdateRequest struct {
	DynamicConfig *DynamicConfig `protobuf:"bytes,1,opt,name=dynamic_config,json=dynamicConfig,proto3" json:"dynamic_config,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

func (*UpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetDynamicConfig

func (x *UpdateRequest) GetDynamicConfig() *DynamicConfig

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

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

func (*UpdateResponse) Descriptor deprecated

func (*UpdateResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

Jump to

Keyboard shortcuts

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