Documentation ¶
Index ¶
- Variables
- func RegisterSettingsServiceServer(s grpc.ServiceRegistrar, srv SettingsServiceServer)
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)deprecated
- func (x *Settings) GetCertificate() string
- func (x *Settings) GetEndpointUrl() string
- func (x *Settings) GetName() string
- func (x *Settings) GetOauth2Cloud() bool
- func (*Settings) ProtoMessage()
- func (x *Settings) ProtoReflect() protoreflect.Message
- func (x *Settings) Reset()
- func (x *Settings) String() string
- type SettingsReq
- type SettingsResp
- type SettingsServiceClient
- type SettingsServiceServer
- type UnimplementedSettingsServiceServer
- type UnsafeSettingsServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_settings_settings_proto protoreflect.FileDescriptor
var File_settings_settings_service_proto protoreflect.FileDescriptor
var SettingsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "settings.SettingsService", HandlerType: (*SettingsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _SettingsService_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "settings/settings_service.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 Settings ¶
type Settings struct { Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` EndpointUrl string `protobuf:"bytes,1,opt,name=endpoint_url,json=endpointUrl,proto3" json:"endpoint_url,omitempty"` Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` // requires oauth2 for cloud service. Oauth2Cloud bool `protobuf:"varint,4,opt,name=oauth2_cloud,json=oauth2Cloud,proto3" json:"oauth2_cloud,omitempty"` // contains filtered or unexported fields }
func (*Settings) Descriptor
deprecated
func (*Settings) GetCertificate ¶
func (*Settings) GetEndpointUrl ¶
func (*Settings) GetOauth2Cloud ¶
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
func (*Settings) ProtoReflect ¶ added in v0.0.12
func (x *Settings) ProtoReflect() protoreflect.Message
type SettingsReq ¶
type SettingsReq struct { UseCase string `protobuf:"bytes,2,opt,name=use_case,json=useCase,proto3" json:"use_case,omitempty"` // contains filtered or unexported fields }
func (*SettingsReq) Descriptor
deprecated
func (*SettingsReq) Descriptor() ([]byte, []int)
Deprecated: Use SettingsReq.ProtoReflect.Descriptor instead.
func (*SettingsReq) GetUseCase ¶
func (x *SettingsReq) GetUseCase() string
func (*SettingsReq) ProtoMessage ¶
func (*SettingsReq) ProtoMessage()
func (*SettingsReq) ProtoReflect ¶ added in v0.0.12
func (x *SettingsReq) ProtoReflect() protoreflect.Message
func (*SettingsReq) Reset ¶
func (x *SettingsReq) Reset()
func (*SettingsReq) String ¶
func (x *SettingsReq) String() string
type SettingsResp ¶
type SettingsResp struct { Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` // contains filtered or unexported fields }
func (*SettingsResp) Descriptor
deprecated
func (*SettingsResp) Descriptor() ([]byte, []int)
Deprecated: Use SettingsResp.ProtoReflect.Descriptor instead.
func (*SettingsResp) GetSettings ¶
func (x *SettingsResp) GetSettings() *Settings
func (*SettingsResp) ProtoMessage ¶
func (*SettingsResp) ProtoMessage()
func (*SettingsResp) ProtoReflect ¶ added in v0.0.12
func (x *SettingsResp) ProtoReflect() protoreflect.Message
func (*SettingsResp) Reset ¶
func (x *SettingsResp) Reset()
func (*SettingsResp) String ¶
func (x *SettingsResp) String() string
type SettingsServiceClient ¶
type SettingsServiceClient interface {
Get(ctx context.Context, in *SettingsReq, opts ...grpc.CallOption) (*SettingsResp, 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 { Get(context.Context, *SettingsReq) (*SettingsResp, error) // contains filtered or unexported methods }
SettingsServiceServer is the server API for SettingsService service. All implementations must embed UnimplementedSettingsServiceServer for forward compatibility
type UnimplementedSettingsServiceServer ¶ added in v0.0.5
type UnimplementedSettingsServiceServer struct { }
UnimplementedSettingsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSettingsServiceServer) Get ¶ added in v0.0.5
func (UnimplementedSettingsServiceServer) Get(context.Context, *SettingsReq) (*SettingsResp, error)
type UnsafeSettingsServiceServer ¶ added in v0.0.18
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.