go-swagger: github.com/go-swagger/go-swagger/examples/authentication/models Index | Files

package models

import "github.com/go-swagger/go-swagger/examples/authentication/models"

Index

Package Files

customer.go error.go principal.go social_id.go

type Customer Uses

type Customer struct {

    // agent associated with this customer
    AgentID int32 `json:"agentId,omitempty"`

    // internal identifier of a customer
    // Required: true
    // Read Only: true
    CustomerID int64 `json:"customerId"`

    // fips code
    // Required: true
    // Min Length: 1
    FipsCode *string `json:"fipsCode"`

    // name
    // Required: true
    // Min Length: 1
    Name *string `json:"name"`

    // Lookup identifier to find a customer in the system
    // Required: true
    // Min Length: 11
    Ssn *string `json:"ssn"`

    // surname
    // Required: true
    // Min Length: 1
    Surname *string `json:"surname"`
}

Customer customer

swagger:model customer

func (*Customer) ContextValidate Uses

func (m *Customer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this customer based on the context it is used

func (*Customer) MarshalBinary Uses

func (m *Customer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Customer) UnmarshalBinary Uses

func (m *Customer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Customer) Validate Uses

func (m *Customer) Validate(formats strfmt.Registry) error

Validate validates this customer

type Error Uses

type Error struct {

    // code
    Code int64 `json:"code,omitempty"`

    // fields
    Fields string `json:"fields,omitempty"`

    // message
    // Required: true
    Message *string `json:"message"`
}

Error error

swagger:model error

func (*Error) ContextValidate Uses

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary Uses

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary Uses

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate Uses

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Principal Uses

type Principal string

Principal principal

swagger:model principal

func (Principal) ContextValidate Uses

func (m Principal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this principal based on context it is used

func (Principal) Validate Uses

func (m Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

type SocialID Uses

type SocialID struct {

    // ssn
    // Required: true
    // Min Length: 11
    Ssn *string `json:"ssn"`
}

SocialID social id

swagger:model social_id

func (*SocialID) ContextValidate Uses

func (m *SocialID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this social id based on context it is used

func (*SocialID) MarshalBinary Uses

func (m *SocialID) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SocialID) UnmarshalBinary Uses

func (m *SocialID) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SocialID) Validate Uses

func (m *SocialID) Validate(formats strfmt.Registry) error

Validate validates this social id

Package models imports 5 packages (graph) and is imported by 8 packages. Updated 2021-01-26. Refresh now. Tools for package owners.