Rename to ActorData

This commit is contained in:
erik 2023-11-16 15:02:20 +01:00 committed by Michael Jerger
parent 09058c13c5
commit 78fc75135f
2 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ type ActorData struct {
port string // optional
}
func (a ActorData) ValidateActor() error {
func (a ActorData) ValidateActorData() error {
if a.schema == "" || a.host == "" {
return fmt.Errorf("the actor ID was not valid: Invalid Schema or Host")
@ -28,7 +28,7 @@ func (a ActorData) ValidateActor() error {
}
func ParseActor(actor string) (ActorData, error) {
func ParseActorData(actor string) (ActorData, error) {
u, err := url.Parse(actor)
// check if userID IRI is well formed url