Documentation ¶
Index ¶
- Constants
- Variables
- func NewAddEndpoint(s Service) endpoint.Endpoint
- func NewListEndpoint(s Service) endpoint.Endpoint
- func NewViewedHost(res *Host, view string) *goasnmpviews.Host
- func NewViewedHostCollection(res HostCollection, view string) goasnmpviews.HostCollection
- type AddPayload
- type Client
- type Endpoints
- type Host
- type HostCollection
- type Service
Constants ¶
const ServiceName = "goasnmp"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [2]string{"list", "add"}
MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.
Functions ¶
func NewAddEndpoint ¶
NewAddEndpoint returns an endpoint function that calls the method "add" of service "goasnmp".
func NewListEndpoint ¶
NewListEndpoint returns an endpoint function that calls the method "list" of service "goasnmp".
func NewViewedHost ¶
func NewViewedHost(res *Host, view string) *goasnmpviews.Host
NewViewedHost initializes viewed result type Host from result type Host using the given view.
func NewViewedHostCollection ¶
func NewViewedHostCollection(res HostCollection, view string) goasnmpviews.HostCollection
NewViewedHostCollection initializes viewed result type HostCollection from result type HostCollection using the given view.
Types ¶
type AddPayload ¶
type AddPayload struct { // Hostname or Ip of Device Hostname string // Whether or not to walk public tree Public bool // Whether or not Ondemand polling is supported OnDemand *bool }
AddPayload is the payload type of the goasnmp service add method.
type Client ¶
Client is the "goasnmp" service client.
type Endpoints ¶
Endpoints wraps the "goasnmp" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "goasnmp" service with endpoints.
type Host ¶
type Host struct { // Whether or not to walk public tree Public *bool // Whether or not Ondemand polling is supported OnDemand *bool }
Host is the result type of the goasnmp service add method.
func NewHost ¶
func NewHost(vres *goasnmpviews.Host) *Host
NewHost initializes result type Host from viewed result type Host.
func (*Host) CreateFromInterfaceHost ¶
func (t *Host) CreateFromInterfaceHost(v *media_type.InterfaceHost)
CreateFromInterfaceHost initializes t from the fields of v
func (*Host) CreateFromInterfaceHost2 ¶
func (t *Host) CreateFromInterfaceHost2(v *media_type.InterfaceHost)
CreateFromInterfaceHost2 initializes t from the fields of v
type HostCollection ¶
type HostCollection []*Host
HostCollection is the result type of the goasnmp service list method.
func NewHostCollection ¶
func NewHostCollection(vres goasnmpviews.HostCollection) HostCollection
NewHostCollection initializes result type HostCollection from viewed result type HostCollection.