Skip to content

Commit

Permalink
Added Types method to return Protocol Types
Browse files Browse the repository at this point in the history
  • Loading branch information
elia-bracci-hs authored Oct 20, 2023
1 parent 3ac44d5 commit 95ff31d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ func (p *Protocol) Hash() string {
return p.hash
}

// Types returns the types of the protocol.
func (p *Protocol) Types() []NamedSchema {
return p.types
}

// String returns the canonical form of the protocol.
func (p *Protocol) String() string {
types := ""
Expand Down

0 comments on commit 95ff31d

Please sign in to comment.