Documentation ¶
Overview ¶
Package cdp contains generated bindings for API file cdp.api.
Contents: - 2 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type CdpEnableDisable
- func (*CdpEnableDisable) GetCrcString() string
- func (*CdpEnableDisable) GetMessageName() string
- func (*CdpEnableDisable) GetMessageType() api.MessageType
- func (m *CdpEnableDisable) Marshal(b []byte) ([]byte, error)
- func (m *CdpEnableDisable) Reset()
- func (m *CdpEnableDisable) Size() (size int)
- func (m *CdpEnableDisable) Unmarshal(b []byte) error
- type CdpEnableDisableReply
- func (*CdpEnableDisableReply) GetCrcString() string
- func (*CdpEnableDisableReply) GetMessageName() string
- func (*CdpEnableDisableReply) GetMessageType() api.MessageType
- func (m *CdpEnableDisableReply) Marshal(b []byte) ([]byte, error)
- func (m *CdpEnableDisableReply) Reset()
- func (m *CdpEnableDisableReply) Size() (size int)
- func (m *CdpEnableDisableReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
View Source
const ( APIFile = "cdp" APIVersion = "1.0.0" VersionCrc = 0x8cfa825e )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type CdpEnableDisable ¶
type CdpEnableDisable struct {
EnableDisable bool `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
}
/*
- Simple enable/disable API for the cdp protocol *
- Copyright (c) 2011-2018 by Cisco and/or its affiliates.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at: *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
CdpEnableDisable defines message 'cdp_enable_disable'.
func (*CdpEnableDisable) GetCrcString ¶
func (*CdpEnableDisable) GetCrcString() string
func (*CdpEnableDisable) GetMessageName ¶
func (*CdpEnableDisable) GetMessageName() string
func (*CdpEnableDisable) GetMessageType ¶
func (*CdpEnableDisable) GetMessageType() api.MessageType
func (*CdpEnableDisable) Reset ¶
func (m *CdpEnableDisable) Reset()
func (*CdpEnableDisable) Size ¶
func (m *CdpEnableDisable) Size() (size int)
func (*CdpEnableDisable) Unmarshal ¶
func (m *CdpEnableDisable) Unmarshal(b []byte) error
type CdpEnableDisableReply ¶
type CdpEnableDisableReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
CdpEnableDisableReply defines message 'cdp_enable_disable_reply'.
func (*CdpEnableDisableReply) GetCrcString ¶
func (*CdpEnableDisableReply) GetCrcString() string
func (*CdpEnableDisableReply) GetMessageName ¶
func (*CdpEnableDisableReply) GetMessageName() string
func (*CdpEnableDisableReply) GetMessageType ¶
func (*CdpEnableDisableReply) GetMessageType() api.MessageType
func (*CdpEnableDisableReply) Marshal ¶
func (m *CdpEnableDisableReply) Marshal(b []byte) ([]byte, error)
func (*CdpEnableDisableReply) Reset ¶
func (m *CdpEnableDisableReply) Reset()
func (*CdpEnableDisableReply) Size ¶
func (m *CdpEnableDisableReply) Size() (size int)
func (*CdpEnableDisableReply) Unmarshal ¶
func (m *CdpEnableDisableReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface {
CdpEnableDisable(ctx context.Context, in *CdpEnableDisable) (*CdpEnableDisableReply, error)
}
RPCService defines RPC service cdp.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.