ValidateEnvelope validates one envelope without returning a normalized copy.
(env Envelope, opts ValidateOptions)
| 102 | |
| 103 | // ValidateEnvelope validates one envelope without returning a normalized copy. |
| 104 | func ValidateEnvelope(env Envelope, opts ValidateOptions) error { |
| 105 | _, err := NormalizeEnvelope(env, opts) |
| 106 | return err |
| 107 | } |
| 108 | |
| 109 | // ValidateChannel reports whether the channel matches the RFC grammar. |
| 110 | func ValidateChannel(channel string) error { |