pb

package
v0.0.0-...-4c63195 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTwitch = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTwitch   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterTwitchServer

func RegisterTwitchServer(s *grpc.Server, srv TwitchServer)

Types

type DeleteWebhookRequest

type DeleteWebhookRequest struct {
	// discord channel id
	Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	// twitch username
	Twitchname           string   `protobuf:"bytes,2,opt,name=twitchname,proto3" json:"twitchname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteWebhookRequest) Descriptor

func (*DeleteWebhookRequest) Descriptor() ([]byte, []int)

func (*DeleteWebhookRequest) GetChannel

func (m *DeleteWebhookRequest) GetChannel() string

func (*DeleteWebhookRequest) GetTwitchname

func (m *DeleteWebhookRequest) GetTwitchname() string

func (*DeleteWebhookRequest) Marshal

func (m *DeleteWebhookRequest) Marshal() (dAtA []byte, err error)

func (*DeleteWebhookRequest) MarshalTo

func (m *DeleteWebhookRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteWebhookRequest) ProtoMessage

func (*DeleteWebhookRequest) ProtoMessage()

func (*DeleteWebhookRequest) Reset

func (m *DeleteWebhookRequest) Reset()

func (*DeleteWebhookRequest) Size

func (m *DeleteWebhookRequest) Size() (n int)

func (*DeleteWebhookRequest) String

func (m *DeleteWebhookRequest) String() string

func (*DeleteWebhookRequest) Unmarshal

func (m *DeleteWebhookRequest) Unmarshal(dAtA []byte) error

func (*DeleteWebhookRequest) XXX_DiscardUnknown

func (m *DeleteWebhookRequest) XXX_DiscardUnknown()

func (*DeleteWebhookRequest) XXX_Marshal

func (m *DeleteWebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteWebhookRequest) XXX_Merge

func (dst *DeleteWebhookRequest) XXX_Merge(src proto.Message)

func (*DeleteWebhookRequest) XXX_Size

func (m *DeleteWebhookRequest) XXX_Size() int

func (*DeleteWebhookRequest) XXX_Unmarshal

func (m *DeleteWebhookRequest) XXX_Unmarshal(b []byte) error

type DeleteWebhookResponse

type DeleteWebhookResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteWebhookResponse) Descriptor

func (*DeleteWebhookResponse) Descriptor() ([]byte, []int)

func (*DeleteWebhookResponse) Marshal

func (m *DeleteWebhookResponse) Marshal() (dAtA []byte, err error)

func (*DeleteWebhookResponse) MarshalTo

func (m *DeleteWebhookResponse) MarshalTo(dAtA []byte) (int, error)

func (*DeleteWebhookResponse) ProtoMessage

func (*DeleteWebhookResponse) ProtoMessage()

func (*DeleteWebhookResponse) Reset

func (m *DeleteWebhookResponse) Reset()

func (*DeleteWebhookResponse) Size

func (m *DeleteWebhookResponse) Size() (n int)

func (*DeleteWebhookResponse) String

func (m *DeleteWebhookResponse) String() string

func (*DeleteWebhookResponse) Unmarshal

func (m *DeleteWebhookResponse) Unmarshal(dAtA []byte) error

func (*DeleteWebhookResponse) XXX_DiscardUnknown

func (m *DeleteWebhookResponse) XXX_DiscardUnknown()

func (*DeleteWebhookResponse) XXX_Marshal

func (m *DeleteWebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteWebhookResponse) XXX_Merge

func (dst *DeleteWebhookResponse) XXX_Merge(src proto.Message)

func (*DeleteWebhookResponse) XXX_Size

func (m *DeleteWebhookResponse) XXX_Size() int

func (*DeleteWebhookResponse) XXX_Unmarshal

func (m *DeleteWebhookResponse) XXX_Unmarshal(b []byte) error

type GetChannelsRequest

type GetChannelsRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetChannelsRequest) Descriptor

func (*GetChannelsRequest) Descriptor() ([]byte, []int)

func (*GetChannelsRequest) GetId

func (m *GetChannelsRequest) GetId() string

func (*GetChannelsRequest) Marshal

func (m *GetChannelsRequest) Marshal() (dAtA []byte, err error)

func (*GetChannelsRequest) MarshalTo

func (m *GetChannelsRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetChannelsRequest) ProtoMessage

func (*GetChannelsRequest) ProtoMessage()

func (*GetChannelsRequest) Reset

func (m *GetChannelsRequest) Reset()

func (*GetChannelsRequest) Size

func (m *GetChannelsRequest) Size() (n int)

func (*GetChannelsRequest) String

func (m *GetChannelsRequest) String() string

func (*GetChannelsRequest) Unmarshal

func (m *GetChannelsRequest) Unmarshal(dAtA []byte) error

func (*GetChannelsRequest) XXX_DiscardUnknown

func (m *GetChannelsRequest) XXX_DiscardUnknown()

func (*GetChannelsRequest) XXX_Marshal

func (m *GetChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetChannelsRequest) XXX_Merge

func (dst *GetChannelsRequest) XXX_Merge(src proto.Message)

func (*GetChannelsRequest) XXX_Size

func (m *GetChannelsRequest) XXX_Size() int

func (*GetChannelsRequest) XXX_Unmarshal

func (m *GetChannelsRequest) XXX_Unmarshal(b []byte) error

type GetChannelsResponse

type GetChannelsResponse struct {
	Name                 []string `protobuf:"bytes,1,rep,name=name" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetChannelsResponse) Descriptor

func (*GetChannelsResponse) Descriptor() ([]byte, []int)

func (*GetChannelsResponse) GetName

func (m *GetChannelsResponse) GetName() []string

func (*GetChannelsResponse) Marshal

func (m *GetChannelsResponse) Marshal() (dAtA []byte, err error)

func (*GetChannelsResponse) MarshalTo

func (m *GetChannelsResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetChannelsResponse) ProtoMessage

func (*GetChannelsResponse) ProtoMessage()

func (*GetChannelsResponse) Reset

func (m *GetChannelsResponse) Reset()

func (*GetChannelsResponse) Size

func (m *GetChannelsResponse) Size() (n int)

func (*GetChannelsResponse) String

func (m *GetChannelsResponse) String() string

func (*GetChannelsResponse) Unmarshal

func (m *GetChannelsResponse) Unmarshal(dAtA []byte) error

func (*GetChannelsResponse) XXX_DiscardUnknown

func (m *GetChannelsResponse) XXX_DiscardUnknown()

func (*GetChannelsResponse) XXX_Marshal

func (m *GetChannelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetChannelsResponse) XXX_Merge

func (dst *GetChannelsResponse) XXX_Merge(src proto.Message)

func (*GetChannelsResponse) XXX_Size

func (m *GetChannelsResponse) XXX_Size() int

func (*GetChannelsResponse) XXX_Unmarshal

func (m *GetChannelsResponse) XXX_Unmarshal(b []byte) error

type NewWebhookRequest

type NewWebhookRequest struct {
	// discord channel id
	Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	// twitch username
	Twitchname           string   `protobuf:"bytes,2,opt,name=twitchname,proto3" json:"twitchname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewWebhookRequest) Descriptor

func (*NewWebhookRequest) Descriptor() ([]byte, []int)

func (*NewWebhookRequest) GetChannel

func (m *NewWebhookRequest) GetChannel() string

func (*NewWebhookRequest) GetTwitchname

func (m *NewWebhookRequest) GetTwitchname() string

func (*NewWebhookRequest) Marshal

func (m *NewWebhookRequest) Marshal() (dAtA []byte, err error)

func (*NewWebhookRequest) MarshalTo

func (m *NewWebhookRequest) MarshalTo(dAtA []byte) (int, error)

func (*NewWebhookRequest) ProtoMessage

func (*NewWebhookRequest) ProtoMessage()

func (*NewWebhookRequest) Reset

func (m *NewWebhookRequest) Reset()

func (*NewWebhookRequest) Size

func (m *NewWebhookRequest) Size() (n int)

func (*NewWebhookRequest) String

func (m *NewWebhookRequest) String() string

func (*NewWebhookRequest) Unmarshal

func (m *NewWebhookRequest) Unmarshal(dAtA []byte) error

func (*NewWebhookRequest) XXX_DiscardUnknown

func (m *NewWebhookRequest) XXX_DiscardUnknown()

func (*NewWebhookRequest) XXX_Marshal

func (m *NewWebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewWebhookRequest) XXX_Merge

func (dst *NewWebhookRequest) XXX_Merge(src proto.Message)

func (*NewWebhookRequest) XXX_Size

func (m *NewWebhookRequest) XXX_Size() int

func (*NewWebhookRequest) XXX_Unmarshal

func (m *NewWebhookRequest) XXX_Unmarshal(b []byte) error

type NewWebhookResponse

type NewWebhookResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewWebhookResponse) Descriptor

func (*NewWebhookResponse) Descriptor() ([]byte, []int)

func (*NewWebhookResponse) Marshal

func (m *NewWebhookResponse) Marshal() (dAtA []byte, err error)

func (*NewWebhookResponse) MarshalTo

func (m *NewWebhookResponse) MarshalTo(dAtA []byte) (int, error)

func (*NewWebhookResponse) ProtoMessage

func (*NewWebhookResponse) ProtoMessage()

func (*NewWebhookResponse) Reset

func (m *NewWebhookResponse) Reset()

func (*NewWebhookResponse) Size

func (m *NewWebhookResponse) Size() (n int)

func (*NewWebhookResponse) String

func (m *NewWebhookResponse) String() string

func (*NewWebhookResponse) Unmarshal

func (m *NewWebhookResponse) Unmarshal(dAtA []byte) error

func (*NewWebhookResponse) XXX_DiscardUnknown

func (m *NewWebhookResponse) XXX_DiscardUnknown()

func (*NewWebhookResponse) XXX_Marshal

func (m *NewWebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewWebhookResponse) XXX_Merge

func (dst *NewWebhookResponse) XXX_Merge(src proto.Message)

func (*NewWebhookResponse) XXX_Size

func (m *NewWebhookResponse) XXX_Size() int

func (*NewWebhookResponse) XXX_Unmarshal

func (m *NewWebhookResponse) XXX_Unmarshal(b []byte) error

type TwitchClient

type TwitchClient interface {
	GetChannels(ctx context.Context, in *GetChannelsRequest, opts ...grpc.CallOption) (*GetChannelsResponse, error)
	NewWebhook(ctx context.Context, in *NewWebhookRequest, opts ...grpc.CallOption) (*NewWebhookResponse, error)
	DeleteWebhook(ctx context.Context, in *DeleteWebhookRequest, opts ...grpc.CallOption) (*DeleteWebhookResponse, error)
}

func NewTwitchClient

func NewTwitchClient(cc *grpc.ClientConn) TwitchClient

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL