Documentation ¶
Index ¶
Constants ¶
View Source
const (
InvalidOrZeroPortNumberErr = "grps port value is invalid"
)
Variables ¶
This section is empty.
Functions ¶
func GetRootRepositoryPath ¶
func GetRootRepositoryPath() string
func IsDirectory ¶
func ReadConfigFile ¶
Types ¶
type Configs ¶
type Connection ¶
type Connection struct { Host string `yaml:"host" json:"host"` Port uint16 `yaml:"port" json:"port"` ReadBufferSize uint `yaml:"readBufferSize" json:"read_buffer_size"` WriteBufferSize uint `yaml:"writeBufferSize" json:"write_buffer_size"` MaxMessageSize uint `yaml:"maxMessageSize" json:"max_message_size"` Insecure bool `yaml:"insecure" json:"insecure"` Timeout time.Duration `yaml:"timeout" json:"timeout"` }
func (*Connection) MarshalJSON ¶
func (c *Connection) MarshalJSON() ([]byte, error)
func (*Connection) MarshalYAML ¶
func (c *Connection) MarshalYAML() (interface{}, error)
func (*Connection) UnmarshalJSON ¶
func (c *Connection) UnmarshalJSON(data []byte) (err error)
func (*Connection) UnmarshalYAML ¶
func (c *Connection) UnmarshalYAML(unmarshal func(interface{}) error) error
func (*Connection) Validate ¶
func (c *Connection) Validate() (err error)
type EnforcementPolicy ¶
type EnforcementPolicy struct { MinTime time.Duration `yaml:"minTime" json:"min_time"` PermitWithoutStream bool `yaml:"permitWithoutStream" json:"permit_without_stream"` }
func (*EnforcementPolicy) MarshalJSON ¶
func (ep *EnforcementPolicy) MarshalJSON() ([]byte, error)
func (*EnforcementPolicy) MarshalYAML ¶
func (ep *EnforcementPolicy) MarshalYAML() (interface{}, error)
func (*EnforcementPolicy) UnmarshalJSON ¶
func (ep *EnforcementPolicy) UnmarshalJSON(data []byte) (err error)
func (*EnforcementPolicy) UnmarshalYAML ¶
func (ep *EnforcementPolicy) UnmarshalYAML(unmarshal func(interface{}) error) error
type GRPC ¶
type GRPC struct { Enabled bool UseReflection bool `yaml:"useReflection" json:"use_reflection"` Conn *Connection `yaml:"connection" json:"connection"` Keepalive *Keepalive `yaml:"keepalive" json:"keepalive"` }
type Keepalive ¶
type Keepalive struct { Time time.Duration `yaml:"time" json:"time"` Timeout time.Duration `yaml:"timeout" json:"timeout"` EnforcementPolicy *EnforcementPolicy `yaml:"enforcementPolicy" json:"enforcement_policy"` }
func (*Keepalive) MarshalJSON ¶
func (*Keepalive) MarshalYAML ¶
func (*Keepalive) UnmarshalJSON ¶
func (*Keepalive) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.