( ctx context.Context, inputConfig bufconfig.InputConfig, )
| 351 | } |
| 352 | |
| 353 | func (a *refParser) GetMessageRefForInputConfig( |
| 354 | ctx context.Context, |
| 355 | inputConfig bufconfig.InputConfig, |
| 356 | ) (MessageRef, error) { |
| 357 | parsedRef, err := a.getParsedRefForInputConfig(ctx, inputConfig, messageFormats) |
| 358 | if err != nil { |
| 359 | return nil, err |
| 360 | } |
| 361 | parsedSingleRef, ok := parsedRef.(internal.ParsedSingleRef) |
| 362 | if !ok { |
| 363 | return nil, fmt.Errorf("invalid ParsedRef type for message: %T", parsedRef) |
| 364 | } |
| 365 | messageEncoding, err := parseMessageEncoding(parsedSingleRef.Format()) |
| 366 | if err != nil { |
| 367 | return nil, err |
| 368 | } |
| 369 | return newMessageRef(parsedSingleRef, messageEncoding) |
| 370 | } |
| 371 | |
| 372 | func (a *refParser) GetSourceRef( |
| 373 | ctx context.Context, |
nothing calls this directly
no test coverage detected