Documentation ¶
Index ¶
- Variables
- type Conf
- func (*Conf) Descriptor() ([]byte, []int)deprecated
- func (x *Conf) GetAddress() string
- func (x *Conf) GetNetwork() string
- func (x *Conf) GetTimeout() *durationpb.Duration
- func (*Conf) ProtoMessage()
- func (x *Conf) ProtoReflect() protoreflect.Message
- func (x *Conf) Reset()
- func (x *Conf) String() string
- func (m *Conf) Validate() error
- type ConfValidationError
- type Option
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var File_rest_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*Conf) Descriptor
deprecated
func (*Conf) GetAddress ¶
func (*Conf) GetNetwork ¶
func (*Conf) GetTimeout ¶
func (x *Conf) GetTimeout() *durationpb.Duration
func (*Conf) ProtoMessage ¶
func (*Conf) ProtoMessage()
func (*Conf) ProtoReflect ¶
func (x *Conf) ProtoReflect() protoreflect.Message
type ConfValidationError ¶
type ConfValidationError struct {
// contains filtered or unexported fields
}
ConfValidationError is the validation error returned by Conf.Validate if the designated constraints aren't met.
func (ConfValidationError) Cause ¶
func (e ConfValidationError) Cause() error
Cause function returns cause value.
func (ConfValidationError) Error ¶
func (e ConfValidationError) Error() string
Error satisfies the builtin error interface
func (ConfValidationError) ErrorName ¶
func (e ConfValidationError) ErrorName() string
ErrorName returns error name.
func (ConfValidationError) Field ¶
func (e ConfValidationError) Field() string
Field function returns field value.
func (ConfValidationError) Key ¶
func (e ConfValidationError) Key() bool
Key function returns key value.
func (ConfValidationError) Reason ¶
func (e ConfValidationError) Reason() string
Reason function returns reason value.
type Option ¶
type Option func(*options)
func WithFilter ¶
func WithFilter(m ...http.FilterFunc) Option
func WithMiddleware ¶
func WithMiddleware(m ...middleware.Middleware) Option
WithMiddleware with sys client
Click to show internal directories.
Click to hide internal directories.