This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(BUX-158): README docs + comments for godocs (#8)
* docs: adds comment docs for go docs * docs: creates docs for implemented methods * fix: moves line to correct paragraph * fix: simplifies docs by removing implementation details * Update broadcast/broadcast-client/client_builder.go Co-authored-by: Damian Orzepowski <damian.orzepowski@softwarelab.com.pl> * Update broadcast/broadcast-client/client_builder.go Co-authored-by: Damian Orzepowski <damian.orzepowski@softwarelab.com.pl> * fix: adds example to the errundefinedclient * fix: adds example for ErrStrategyUnkown comments * fix: adds description for transactionquerier * fix: adds specific description for TransactionSubmitters * Update broadcast/interface.go Co-authored-by: Damian Orzepowski <damian.orzepowski@softwarelab.com.pl> * feat: removes unnecessary comments inside internal package * feat: handles decoding error instead of ignoring it * docs: added description for OneByOneStrategy * docs: adds suggested description for strategy struct. * Update broadcast/broadcast-client/arc_config.go Co-authored-by: Damian Orzepowski <damian.orzepowski@softwarelab.com.pl> * docs: removes code samples and documented it in "words" instead * fix: removes unnecessary comments from config interface * fix: removes queryTransaction implementation comment * fix: removes SubmitBatchTransaction implementation commit --------- Co-authored-by: Damian Orzepowski <damian.orzepowski@softwarelab.com.pl>
- Loading branch information
1 parent
f8e769f
commit 7596179
Showing
21 changed files
with
323 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
run: | ||
skip-dirs: | ||
- internal/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
// Package broadcast_client contains the client for the broadcast service. | ||
package broadcast_client | ||
|
||
// ArcClientConfig is used by [WithArc] to set up the connection between the broadcast client and Arc. | ||
// The provided token will be used as the Authorization header. | ||
type ArcClientConfig struct { | ||
APIUrl string | ||
Token string | ||
} | ||
|
||
// GetApiUrl returns the API url. | ||
func (c *ArcClientConfig) GetApiUrl() string { | ||
return c.APIUrl | ||
} | ||
|
||
// GetToken returns the token. | ||
func (c *ArcClientConfig) GetToken() string { | ||
return c.Token | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.