Documentation ¶
Index ¶
- Variables
- func RegisterTwitchServer(s *grpc.Server, srv TwitchServer)
- type DeleteWebhookRequest
- func (*DeleteWebhookRequest) Descriptor() ([]byte, []int)
- func (m *DeleteWebhookRequest) GetChannel() string
- func (m *DeleteWebhookRequest) GetTwitchname() string
- func (m *DeleteWebhookRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteWebhookRequest) MarshalTo(dAtA []byte) (int, error)
- func (*DeleteWebhookRequest) ProtoMessage()
- func (m *DeleteWebhookRequest) Reset()
- func (m *DeleteWebhookRequest) Size() (n int)
- func (m *DeleteWebhookRequest) String() string
- func (m *DeleteWebhookRequest) Unmarshal(dAtA []byte) error
- func (m *DeleteWebhookRequest) XXX_DiscardUnknown()
- func (m *DeleteWebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeleteWebhookRequest) XXX_Merge(src proto.Message)
- func (m *DeleteWebhookRequest) XXX_Size() int
- func (m *DeleteWebhookRequest) XXX_Unmarshal(b []byte) error
- type DeleteWebhookResponse
- func (*DeleteWebhookResponse) Descriptor() ([]byte, []int)
- func (m *DeleteWebhookResponse) Marshal() (dAtA []byte, err error)
- func (m *DeleteWebhookResponse) MarshalTo(dAtA []byte) (int, error)
- func (*DeleteWebhookResponse) ProtoMessage()
- func (m *DeleteWebhookResponse) Reset()
- func (m *DeleteWebhookResponse) Size() (n int)
- func (m *DeleteWebhookResponse) String() string
- func (m *DeleteWebhookResponse) Unmarshal(dAtA []byte) error
- func (m *DeleteWebhookResponse) XXX_DiscardUnknown()
- func (m *DeleteWebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeleteWebhookResponse) XXX_Merge(src proto.Message)
- func (m *DeleteWebhookResponse) XXX_Size() int
- func (m *DeleteWebhookResponse) XXX_Unmarshal(b []byte) error
- type GetChannelsRequest
- func (*GetChannelsRequest) Descriptor() ([]byte, []int)
- func (m *GetChannelsRequest) GetId() string
- func (m *GetChannelsRequest) Marshal() (dAtA []byte, err error)
- func (m *GetChannelsRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetChannelsRequest) ProtoMessage()
- func (m *GetChannelsRequest) Reset()
- func (m *GetChannelsRequest) Size() (n int)
- func (m *GetChannelsRequest) String() string
- func (m *GetChannelsRequest) Unmarshal(dAtA []byte) error
- func (m *GetChannelsRequest) XXX_DiscardUnknown()
- func (m *GetChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetChannelsRequest) XXX_Merge(src proto.Message)
- func (m *GetChannelsRequest) XXX_Size() int
- func (m *GetChannelsRequest) XXX_Unmarshal(b []byte) error
- type GetChannelsResponse
- func (*GetChannelsResponse) Descriptor() ([]byte, []int)
- func (m *GetChannelsResponse) GetName() []string
- func (m *GetChannelsResponse) Marshal() (dAtA []byte, err error)
- func (m *GetChannelsResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetChannelsResponse) ProtoMessage()
- func (m *GetChannelsResponse) Reset()
- func (m *GetChannelsResponse) Size() (n int)
- func (m *GetChannelsResponse) String() string
- func (m *GetChannelsResponse) Unmarshal(dAtA []byte) error
- func (m *GetChannelsResponse) XXX_DiscardUnknown()
- func (m *GetChannelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetChannelsResponse) XXX_Merge(src proto.Message)
- func (m *GetChannelsResponse) XXX_Size() int
- func (m *GetChannelsResponse) XXX_Unmarshal(b []byte) error
- type NewWebhookRequest
- func (*NewWebhookRequest) Descriptor() ([]byte, []int)
- func (m *NewWebhookRequest) GetChannel() string
- func (m *NewWebhookRequest) GetTwitchname() string
- func (m *NewWebhookRequest) Marshal() (dAtA []byte, err error)
- func (m *NewWebhookRequest) MarshalTo(dAtA []byte) (int, error)
- func (*NewWebhookRequest) ProtoMessage()
- func (m *NewWebhookRequest) Reset()
- func (m *NewWebhookRequest) Size() (n int)
- func (m *NewWebhookRequest) String() string
- func (m *NewWebhookRequest) Unmarshal(dAtA []byte) error
- func (m *NewWebhookRequest) XXX_DiscardUnknown()
- func (m *NewWebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NewWebhookRequest) XXX_Merge(src proto.Message)
- func (m *NewWebhookRequest) XXX_Size() int
- func (m *NewWebhookRequest) XXX_Unmarshal(b []byte) error
- type NewWebhookResponse
- func (*NewWebhookResponse) Descriptor() ([]byte, []int)
- func (m *NewWebhookResponse) Marshal() (dAtA []byte, err error)
- func (m *NewWebhookResponse) MarshalTo(dAtA []byte) (int, error)
- func (*NewWebhookResponse) ProtoMessage()
- func (m *NewWebhookResponse) Reset()
- func (m *NewWebhookResponse) Size() (n int)
- func (m *NewWebhookResponse) String() string
- func (m *NewWebhookResponse) Unmarshal(dAtA []byte) error
- func (m *NewWebhookResponse) XXX_DiscardUnknown()
- func (m *NewWebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NewWebhookResponse) XXX_Merge(src proto.Message)
- func (m *NewWebhookResponse) XXX_Size() int
- func (m *NewWebhookResponse) XXX_Unmarshal(b []byte) error
- type TwitchClient
- type TwitchServer
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
type TwitchServer ¶
type TwitchServer interface { GetChannels(context.Context, *GetChannelsRequest) (*GetChannelsResponse, error) NewWebhook(context.Context, *NewWebhookRequest) (*NewWebhookResponse, error) DeleteWebhook(context.Context, *DeleteWebhookRequest) (*DeleteWebhookResponse, error) }
Click to show internal directories.
Click to hide internal directories.