func (h Header) Validate() error {
	if err := h.Priority.Validate(); err != nil {
		return fmt.Errorf("bad Priority: %v", err)
	}
	if err := h.Hostname.Validate(); err != nil {
		return fmt.Errorf("bad Hostname: %v", err)
	}
	if err := h.AppName.Validate(); err != nil {
		return fmt.Errorf("bad AppName: %v", err)
	}
	if err := h.ProcID.Validate(); err != nil {
		return fmt.Errorf("bad ProcID: %v", err)
	}
	if err := h.MsgID.Validate(); err != nil {
		return fmt.Errorf("bad MsgID: %v", err)
	}
	return nil
}
// Validate ensures that the header is correct.
Validate ensures that the header is correct.
// Validate ensures that the header is correct .
func (h Header) Validate() error {
	if err := h.Priority.Validate(); err != nil {
		return fmt.Errorf("bad Priority: %v", err)
	}
	if err := h.Hostname.Validate(); err != nil {
		return fmt.Errorf("bad Hostname: %v", err)
	}
	if err := h.AppName.Validate(); err != nil {
		return fmt.Errorf("bad AppName: %v", err)
	}
	if err := h.ProcID.Validate(); err != nil {
		return fmt.Errorf("bad ProcID: %v", err)
	}
	if err := h.MsgID.Validate(); err != nil {
		return fmt.Errorf("bad MsgID: %v", err)
	}
	return nil
}
func ( h Header ) Validate ( ) error { if err := h . Priority . Validate ( ) ; err != nil { return fmt . Errorf ( " " , err ) } if err := h . Hostname . Validate ( ) ; err != nil { return fmt . Errorf ( " " , err ) } if err := h . AppName . Validate ( ) ; err != nil { return fmt . Errorf ( " " , err ) } if err := h . ProcID . Validate ( ) ; err != nil { return fmt . Errorf ( " " , err ) } if err := h . MsgID . Validate ( ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
Validate ensures that the header is correct.
Validate ensures that the header is correct .